← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #205668]: Queueing Scripts to use with WebMon

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Depending on how you do it, you can start as many Sikuli scripts in parallel, as you want using e.g. Sikuli-IDE-w.bat.
These scripts will run independently from each other and hence influence each other, since use of mouse and keyboard cannot be coordinated between the scripts. There is no queuing mechanism in Sikuli, that can help you with this problem.

conclusion: you have to take care, that only one Sikuli script (that
acts on the GUI using mouse and keyboard) runs on a system at a given
time.

If you do not have the possibility, to arrange this in webmonx, then I think, the easiest way is to do the following:
- in the batch file, you use to start the script, create a file with a unique filename containing a timestamp.
- give this filename as a parameter to the script
- when the script starts, it checks, wether its own timestamp-filename is the oldest one
-- if yes, it starts running and before completion, it deletes its timestamp-filename
-- if no, it waits until its timestamp-filename becomes the oldest one

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