sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55663
Re: [Question #692455]: [How to] Persistent Script
Question #692455 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692455
Status: Open => Answered
RaiMan proposed the following answer:
correct sequence:
#MyHandler is going to call "Trade()" function only
def MyHandler(event):
try:
Trade()
pass
except:
pass
#So my observer has one region assigned and it is running in background.
msgReg.onAppear("1597989280191.png", MyHandler)
msgReg.observeInBackground()
#I stop the observer like this.
msgReg.stopObserver()
read the docs about the feature
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.