lock screen

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
programerzryk
Posts: 1
Joined: 19 Aug 2022, 08:47

lock screen

Post by programerzryk » 19 Aug 2022, 08:54

Hi, I wrote script in autohotkey but I have a littile problem. I can't lock my screen after calling messagebox. Could someone help me please?

User avatar
mikeyww
Posts: 26941
Joined: 09 Sep 2014, 18:38

Re: lock screen

Post by mikeyww » 19 Aug 2022, 12:35

Welcome to this AutoHotkey forum!

The script waits until MsgBox is resolved. A workaround is to :arrow: SetTimer before the MsgBox is shown. You can then set the timed routine to do whatever you need. A GUI may be another alternative.

Post Reply

Return to “Ask for Help (v1)”