Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pause, resume and stop a Sikuli program?

Suppose I am running a Sikuli program and I want to pause the program at a particular point and then after sometime I want to resume the program from that point where I paused, without affecting the process. And then I want to stop the process and exit from it. The point where I stopped till that it should be saved. Is it possible in Sikuli? If yes, then how?

like image 333
Praveen kumar Avatar asked Jun 03 '13 09:06

Praveen kumar


2 Answers

Press Alt+Shift+c to kill a running Sikuli script.

like image 67
BroknDodge Avatar answered Sep 28 '22 00:09

BroknDodge


No, Sikuli has no built-in capability to manage this for you. However, you can write all of these capabilities into your script or otherwise get them.

Pausing an resuming is most easily done on the Unix command-line, where you can use control-z to suspend a program and fg to resume it. Windows has similar capabilities. Look for "suspend and resume process " to find some ways of doing this (there are many).

Exiting from a program and then being able to re-start the program and have it resume (roughly) where it left off is called "checkpointing". The checkpointing packages I know of are intended for distributed computing and would probably be overkill for what you're doing, but you could take a look at the Wikipedia entry for suggestions. I suspect that implementing it yourself will be the easiest way to go.

For help with either of these topics, I recommend starting a new question specifying the language you're using (Jython or Java) and the operating system (Unix or Windows). The questions and answers to these aren't related to Sikuli.

like image 33
Nathaniel Waisbrot Avatar answered Sep 28 '22 01:09

Nathaniel Waisbrot