Windows: lock screen not working using keyboard shortcut --- not possible --- workaround
Asked by
Liam
workaround:
using 'run('rundll32.exe user32.
BE AWARE: your script will not have any access to screen, mouse and keyboard anymore.
Unlock has to be done manually or with other means
-------
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.
other actions using the "Windows" key seem to work fine
thanks
L
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.