Sikuli Executable Escape Keys

Asked by Ryan S

Currently, I am writing an automation process that will be using RAdmin for remote execution while the user in question takes care of other items on their local machine. I am using RAdmin instead of RDP directly, as this allows for Sikuli to continue to use the HID's without having the window active or the mouse present inside the remote desktop session.

I have just about finished writing my automation scripts through Sikuli, but I want to ensure there is an easier way for them to stop the exported executable in the event something goes wrong (like accidentally closing a browser window where Sikuli is working). Currently I've just instructed them to close the process tree for javaw while an exported executable is running.

Since the main program installs hotkeys to listen for (such as ctrl+shift+2 for screenshotting), is there a command that can be put into the script code that would also allow the exported executable to listen for hotkeys? Or is it only possible to terminate scripts via hotkeys inside the Sikuli program itself?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Ryan S
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

The IDE installs a hot key to interrupt a running script (Windows: alt-shift-c).

My experience on Win7-32: It works, when running the script from inside the IDE (run button, ctrl-r). But it does not work, when using one of the two .bat's (you seem to use the Sikuli-IDE-w.bat) to run a saved executable (.skl).

So I am inclined to say, this is a bug, since it should either work or is not implemented.

It seems, currently killing javaw is the only chance.

Revision history for this message
KingRider (kingrider) said :
#2

Escape Executable is

Windows:
ALT+SHIFT+C

Mac is not remember.. sorry! i use only win7 SP1 64bits

Revision history for this message
RaiMan (raimund-hocke) said :
#3

I posted a bug report - see related bug.

Revision history for this message
Ryan S (reiter) said :
#4

Thanks for the heads up on that. I would imagine if the IDE ensured the executable also installed the hotkeys when it ran, this would likely fix the problem. I'll keep an eye on the bug report and see where it moves forward.

Thanks again,

~Ryan