(note- the script needs to be run as admin to block the input.)
The code does not work where i have to press scroll lock key again to unlock the input , i had to use ctrl+alt+del to get out of the code.
any fix, i like the way to toggling this using scloll lock key.
here's the code
Code: Select all
~ScrollLock::
KeyWait,ScrollLock
If Block = 1
{
BlockInput,Off
MouseGetPos,X,Y
MouseMove,% X + 5,% Y
Block = 0
SetScrollLockState,off
Return
}
State := GetKeyState("ScrollLock", "T")
If State = 1
{
SendMessage, 0x112, 0xF140, 0,, Program Manager
BlockInput,on
Block = 1
}
Return