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

masuo proposed the following answer:
@Dado

Variable "running" is global ?
By popup window you can confirm hotkey is available .

This code works as expected.
[example as python:]
flag = True
def handler(event):
    global flag
    popup("Hotkey!")
    flag = False

Env.addHotkey(Key.F1,KeyModifier.CTRL,handler)

while True:
    popup("[OK]")
    if flag == False:
        break

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