Running Sikuli scripts unattended through Task Scheduler

Asked by Darrell Wilde

On Win7 and after reading numerous other posts/questions regarding similar issues, I still cannot get Sikuli to run simple scripts through the Window Task Scheduler when the pc is locked or logged off. From Task Scheduler, I can succesfully run a scheduled bat file or scheduled tasks where Sikuli is the called program and I pass my script in the "add arguments" as long as I am logged on an active session. When I schedule a time and lock the machine.... only the open.app executes ( IE) but then stops at the first "click" or "type". My goal is to be able to run scripts unattended on logged off machines but I don't see how I'll ever get there if I can't even run them on a locked pc. My id is in the administrators group.

Any additional suggestions on how to automate scripts to run unattended?

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

Sikuli by design (based on the Java Robot class) can only act on the real running visually active screen using an unlocked keyboard and mouse.

This is not possible on a logged of machine, since all these resources are locked and not accessible by programs running in background.

You might try to setup some remote environment, that unlocks the machine somehow and allows e.g. via vnc to act on the machine, without allowing to take over control locally.

Can you help with this problem?

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

To post a message you must log in.