[request] Stop execution (e.g. by user mouse movement)

Asked by prodoy

Are there any way to stop the sikuli execution when it´s running?.
I´ve proved "esc", "pause" and other buttons and nothing.
Thank´s.

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

The doc on the homepage says:

How to force a running Sikuli script to quit?

On Windows: alt-shift-c

On Mac: cmd-shift-c

I confirm the Mac version works.

Revision history for this message
prodoy (pordoy) said :
#2

In Windows don´t work, and this is a big problem because if sikuli makes any mistake all begin to fail and you can´t stop it.

Any idea?

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

You are right, it is reported as a bug (https://bugs.launchpad.net/sikuli/+bug/523145)

alt-c works.

I tested on my Win7, but it leads to that the output is no longer reported in the message area, when starting the script again after having aborted it for the first time. To get the normal behavior back, you have to restart the IDE.

please set your answer to solved.

Revision history for this message
prodoy (pordoy) said :
#4

I have WinXP and don´t work anything, i´ve proved "alt-c", "alt-shift-c".....

I´m trying to stop the execution when i run the .skl file.

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

I confirm, that on my Win7 neither alt-shift-c nor alt-c (which works when running a script from the IDE) terminates a running .skl.

This works for me with a .skl:
when I doubleclick the skl, a cmd-window opens and the script starts running. then pressing ctrl-c, I am asked in the cmd-window, wether I want to stop the bat-process. Saying yes, stops the running java-process, which terminates the script.
I guess, the cmd-window needs the focus, to collect the ctrl-c.

I will add this to the reported bug.

Revision history for this message
Anton (afw) said :
#6

this is 2012 now and I have this problem with the latest release . alt-c and alt-shift-c is not working.

I don't know how to stop my while true loop. help.

run directly from the IDE

Revision history for this message
Mathieu Tremblay (mtremblay) said :
#7

I just encountered this problem. I'm running win7. alt+shift+c was working fine yesterday. Today, nothing. Stuck in a while true loop. How can you kill it? I know have 2 script running i think.

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

@ Mathieu
If you ask questions in a comment of another question, you should subscribe to the question to be notified (did it for you).
It is always a good idea, to have one's own questions though.

alt+shift+c sometimes does not work. If you use it, you should always restart the IDE afterwards.

If it does not work: kill the java processes in the task manager.

Revision history for this message
Stefan Rotariu (s-rotariu) said :
#9

For me (Win7 x64 SP1) Alt+Shift+C works fine as far as I can tell.
Entering taskkill /F /IM javaw.exe in cmd or ending process from Taskbar also work.
But my concern with this is that if you (for example) have your mouse stuck somewhere in a corner constantly clicking because of a stuck loop I don't see how you could actually end the script(since you can't focus the cmd/taskbar windows).

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

@ Stefan: thanks for this helpful comment

I have the following on the list:
You might set an option, to tell Sikuli, to come up with the question "stop or resume" if the mouse is moved by something/someone else but Sikuli.
This option would help in this case (and in other cases to pause Sikuli or gracefully terminate it).

Can you help with this problem?

Provide an answer of your own, or ask prodoy for more information if necessary.

To post a message you must log in.