Question #272071 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272071
Status: Open => Answered
RaiMan proposed the following answer:
at least you should have a look at the docs, before using a try-and-
error approach.
In any case I recommend to use the pre final 1.1.0 (http://sikulix.com)
switchApp(myApp) # should bring the window to front
wait(2) # give system some time to rearrange the GUI
focusWindow = App.focusedWindow() # the frontmost window area as Region
img = ("D:\example\workspace\JythonSikuli\src\Images\Knopka_OK_NumberOK.png")
focusWindow.click(img)
... to more efficiently act with images:
setBundlePath(r"D:\example\workspace\JythonSikuli\src\Images") # somewhere at
the beginning
... and later:
focusWindow.click("Knopka_OK_NumberOK.png");
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp