← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #188726]: JAVA icon on MAC/PC when running from TERMINAL

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This is weird on Windows:

The running Java process does not produce any icons, that can be used to
stop a running script.

Using the IDE, you can try the abort key shift-alt-c, but you might have
to try it more than once.

This abort key does not seem to work with using Sikuli-IDE.bat or
Sikuli-IDE-w.bat running a script from command line.

At least with Sikuli-IDE.bat you have a chance by sending a ctrl-c to
the command line window, which lets you abort the running batch command.
Or just close the command line window.

In all cases the running process is not accessible by icon or window,
you have to use the taskmgr.exe to kill it.

--- As a workaround you might implement your own hotkey (at beginning of script):
def myAbort(e): exit()
Env.addHotkey("x", KeyModifier.CTRL+KeyModifier.ALT)

But be aware: Since the above exit() is processed in an independent
subprocess, it might kill your script during some mouse or keyboard
action and leave your GUI in a weird situation. So take care.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.