New question #674832 on Sikuli:
https://answers.launchpad.net/sikuli/+question/674832

I am using SikuliX 1.1.4
I have converted the following code to runnable jar using sikuli IDE:
stop = False
def xHandler(event):
    global stop
    stop = True  
Env.addHotkey("x", KeyModifier.CTRL + KeyModifier.SHIFT, xHandler)
while(1):
    mouseMove(50,50)
    wait(1)
    mouseMove(-50,-50)
    wait(1)
    if stop == True:
        exit()

When I execute jar file and press CTRL+SHIFT+x, execution doesn't stop.
But this works fine when I run the code from sikuli IDE

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