lock screen not working using keyboard shortcut

Asked by Liam on 2020-02-11

I'm trying to lock the screen after my script has run (win 10) using the following code

type('l', Key.WIN)

but this is just typing the 'l' character and not locking the screen

I've got a workaround using 'run('rundll32.exe user32.dll,LockWorkStation')' but I'm just wondering why this keyboard shortcut isn't working?

other actions using the "Windows" key seem to work fine

thanks

L

Question information

Language:
English Edit question
Status:
Open
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-02-11
Last reply:

Can you help with this problem?

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

To post a message you must log in.