Sikuli to unlock the computer

Asked by justin

Is there any way or script to unlock the computer
Because i am schedule a script to download ,as per our company group policy computer will lock automatically if there is no activity ,so if computer lock i want to unlock the computer and run the scrip

i am using window 7 machine

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

Try to regularly trigger events in your script (e.g. use Python module thread to implement it in parallel), that prevent that the machine locks.

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

Might have misunderstood your intention.

So if you want to catch the moment, when the machine locks and then unlock it and run a script:

you need a script, that watches the screen to realize it gets locked and then simulates the unlocking sequence.

Revision history for this message
perry wu (perry-wu) said :
#3

RaiMan, I think what Justin means is in windows, you can lock you screen by press ctr-alt-delete.
and you need type in your username, passwoard and then press ok to go back to your desktop environment.
I tried to do the same thing but looks like once you lock the screen, Sikuli seems doesn't work anymore...

I am using winXP.

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

@ perry
I think with comment #2 I understood, what he wants to do.

--- WIN-L is the standard key short cut to lock the machine, then the login screen comes up

--- if you have a Sikuli script running, when the screen gets locked, the script goes on running. But it will fail in the moment, you issue a find operation, since the screen does not contain the image, you are searching.

--- It is not possible, to operate on the login screen from the script running behind the curtain. click() and type() work, but do not have any effect. trying to capture a region with capture() seems to abort the IDE.

--- So one has to find another technique to get the machine to unlock, that can be triggered from a Sikuli script, that is aware of the fact, that the screen has got locked.

Revision history for this message
Lokesh Banga (lbanga) said :
#5

Is there an update with newer versions, where screen can be captured with a locked screen? Want to run the scripts unattended and for security reasons cannot leave the machine unlocked.

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

@Lokesh
There will never be any solution for that with SikuliX (not possible with the concept).
SikuliX sees, what is visible on the screen.

Can you help with this problem?

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

To post a message you must log in.