I want that pressing for example F12 goes to this anti-input mode:
F12::anti-input mode:
Pressing [Secret HotKey] leaves anti-input mode.
Pressing any combination of keys (other than [Secret HotKey]) or move mouse or press any mouse button will result in locking pc: DllCall("LockWorkStation")
Input Lock - safe mode - logout user
Re: Input Lock - safe mode - logout user
Something like this should work, but you have to press and hołd key for a while, and have to be run with admin rights for blockinput to work, i have written it on phone do I am not sure
Code: Select all
F12 UP::
BlockInput,On
Sleep 10
Loop {
T:= A_TimeIdle
if(A_TimeIdle < T)
BlockInput, Off
If(GetKeyState("Enter","P"))
break
else
DllCall("LockWorkStation)
}
Re: Input Lock - safe mode - logout user
It locks the pc immediately
Who is online
Users browsing this forum: morkovka18 and 169 guests