lock or unlock windows session

Asked by vincent

I'am trying to success to lock or unlocka Windows session.

So for that I have to press using sikuli CTRL+ALT+DELETE

using type(Key.DELETE, KeyModifier.CTRL | KeyModifier.ALT) on a locked session -> do not work
using type(Key.DELETE, KeyModifier.CTRL | KeyModifier.ALT) on a open session -> do not work
playing with keyDown -> do not work
playing with num lock (bug) -> do not work

I've search deeper on the subjuect but seems there are really old bugs declared but no real solution.

is there any workaround to success ?

vincent

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

as far as I understand: this is not possible with Sikuli and the underlying Java Robot (but you might try on your own with Java Robot)

Revision history for this message
Albert (bihleral) said :
#2

A bit late to the party, but maybe this might help someone who is still looking for a work-around.

On Windows 7 this works for me:

type(Key.WIN);
type(Key.RIGHT);
type(Key.RIGHT);
type(Key.UP);
type(Key.UP);
type(Key.ENTER);

Basically it opens the Windows menu and navigates to the "lock".

Can you help with this problem?

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

To post a message you must log in.