Question #663268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663268

RaiMan posted a new comment:
as mentioned:
In this setup the script has to be killed, if no longer needed.

On Windows with the taskmanager.

But usually one adds a termination hotkey like this:

def stopRun(event):
    global shouldRun
    shouldrun = False

def openChrome(event):
    click("1516306798475.png")

Env.addHotkey("n", KeyModifier.ALT + KeyModifier.CTRL, openChrome)
Env.addHotkey("x", KeyModifier.ALT + KeyModifier.CTRL, stopRun)

shouldRun = True
while shouldRun:
    wait(1)

Now pressing ctrl-alt-x will end the script.

BTW: 
it makes sense, to run such scripts from a commandline, so you have the IDE in 
parallel available for other things.

-- 
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

Reply via email to