Trying to lock a Windows 7 machine via AHK. Normally, to do this you just hold down the Windows key and hit the letter l (lowercase L). I have tried it the following 3 ways, but none of them work:
Send #l
Send, {LWin Down}l{LWin Up}
Send, {LWin down}
Send l
Send, {LWin up}
Am I missing something obvious?
Lock Workstation
Re: Lock Workstation
Look at the remarks on the # modifier for hotkeys
You might want to explore the Run command with information from here.Win (Windows logo key). In v1.0.48.01+, for Windows Vista and later, hotkeys that include the Windows key (e.g. #a) will wait for the Windows key to be released before sending any text containing an "L" keystroke.
Re: Lock Workstation
Code: Select all
DllCall("LockWorkStation")
Re: Lock Workstation
Thanks guys
Who is online
Users browsing this forum: autohotkeycool, coccosoids, grossermanitu, Ram, songdg, unleashed7, watagan and 54 guests