Is it possible to access window controls and get its attributes? --- No

Asked by Igor Balak

Is there a piece of code which takes in an image, compares it with the desktop and returns a control matching the image?
Can that piece of code be replaced with something which takes in a "string" searches the desktop by looking at every Window visible and walking the control hierarchy and comparing the caption of the control with the string specified, and then returns the matching control?
Can be find() function modified ?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Sikuli cannot handle "controls" in the sense of window management.

It finds regions on the screen either by searching images or text.

The new App class is some sort of beginning to your request, since it "knows" windows that belong to an app (Mac) or have some string in it's title (Windows). But even here, you have to know the app name or the title text.

Sikuli does not give any support, to walk through the controls hierarchy of the systems window manager, as this could be done on Mac using Applescript for example.

You have to find and use some other piece of software, that does what you want and integrate Sikuli with it somehow.

Can you help with this problem?

Provide an answer of your own, or ask Igor Balak for more information if necessary.

To post a message you must log in.