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

I am using Windows 10 and SikulixIDE 1.1.0 (2015-10-05_17:07).  

-----

def myHandler(event):
    print "inside message"

Key.addHotkey(Key.F2, Key.SHIFT +Key.CTRL, myHandler)
wait(10)
Key.removeHotkey(Key.F2, Key.SHIFT +Key.CTRL)

*****
[error] script [ myHotKey ] stopped with error in line 4
[error] TypeError ( addHotkey(): 2nd arg can't be coerced to int )
-----

def myHandler(event):
    print "inside message"

Key.addHotkey(Key.F2, 0, myHandler)
wait(10)
Key.removeHotkey(Key.F2, 0)

*****
[error] script [ myHotKey ] stopped with error in line 4
[error] TypeError ( addHotkey(): 3rd arg can't be coerced to 
org.sikuli.basics.HotkeyListener )
-----

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