sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #52517
Re: [Question #683933]: Sikuli 1.1.3 - hotkey not fuctioning on runnable JAR file
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.