Ok what it does is it locks the mouse and requires a password to unlock
here are some pics. After typing the wrong password the script will automaticaly reload and after typing the correct password the script will end
1.
2.
#NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Realpassword = 712151 ; This is the password for the script BlockInput, MouseMove ; This blocks the mouse movement InputBox, password, AHK Computer Lock, Computer and Mouse have been Locked`nEnter the password to Unlock`n, hide IfInString, password, %Realpassword% ; Checks if the password is the same value as in the variable %Realpassword% { Sleep, 200 ; Waits 200 miliseconds BlockInput, MouseMoveOff ; Unlocks the mouse after typing correct password Sleep, 100 ; Waits 100 miliseconds MsgBox, Computer has been unlocked.`nIf you tell the password to anyone it will end up being changed. ExitApp ; Closes the script if correct password is typed } else ; Otherwise { Reload ; Reloads the script } +^!LButton::ExitApp ; Secret hotkey to close the script, shift+ctrl+alt + left click