How to lock the screen with robot

studio
hotkey

#1

Hi community,

is that possible to let the robot lock the screen by itself? I want to use this, after the robot finished an execution to avoid unauthorized usage Windows account.

A send hotkey activity with WIN+L does not work.

I’m looking forward for your hints

Greetings


#2

Hi,
Launch CMD using start process/open application activity and pass the argument.
rundll32.exe user32.dll,LockWorkStation


#3

Many thanks!! This solves the issue.

Greetings
Nico