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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to