Can we run sikuli script in background

Asked by KRP

is there ay option to run the sikuli script in background without interupting the PC work where sikuli is running?

Question information

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

Since a Sikuli script uses the real monitor, mouse and keyboard, a system running a script must be left alone with no interference by the user or any other automation tool, as long as these actions are not synchronized by some means.

So a Sikuli script always runs in "foreground" and in this sense, there cannot be a background option.

If you have a script, that just observes the screen and mouse movement and does not interact using click() or type(), the script in fact runs in the "background".

Hope I understood your question ;-)

Revision history for this message
Min-cheng HUANG (mhuang-a) said :
#2

Running the Sikuli in a VM might be another solution if you still want to have control of current machine.

Revision history for this message
obaskirt (onur-baskirt) said :
#3

Did anybody try WM option?

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

@ obaskirt

The VM option works in many different solutions and system environments. but every combination has its special challenges.

So it might be worth to give it a try using a freely available VM like VMBox.

Revision history for this message
obaskirt (onur-baskirt) said :
#5

@ RaiMan

If I will find extra time I'll try to do that. You are right that solution may bring out interesting problems. But if it works, that will be perfect! :-) Maybe somebody has already done this.

Can you help with this problem?

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

To post a message you must log in.