sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36794
[Question #285172]: Cannot exit() from onAppear
New question #285172 on Sikuli:
https://answers.launchpad.net/sikuli/+question/285172
I am using onAppear to catch a specific image on the screen. Once the image is there, I want the script to stop. I've been using exit() command for that. However, once I updated to ver. 1.1.0, exit() command is being omitted. The scripts executes until that command, and then ignores it and proceeds.
How I can stop scipt's execution under hanlder for onAppear?
def __onAppearForTheImage(self):
self.__reg.onAppear("imgPath", self.__handlerForTheImage)
self.__reg.observeInBackground(FOREVER)
def __handlerForTheImage(self, event):
print "Image found"
exit() # Ignores that line
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.