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

RaiMan proposed the following answer:
I made the following test with latest 1.1.4 - works in IDE and running the jar 
from commandline using
<runide> -r someRunnable_sikuli.jar

# script:
def hkHandler(event):
  print "*** hotkey pressed"
  global shouldstop
  shouldstop = True

shouldstop = False
Env.addHotkey("c", KeyModifier.CTRL + KeyModifier.ALT, hkHandler)

for n in range(20):
  if shouldstop: break
  print n
  wait(1)

So you can use the HotKey feature to add any fuctionality to your
script, that reacts on pressing specific keys.

I am sorry, but I do not support 1.1.3 anymore.

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