Controlling Blocked Input: AutoIt

email me

Just set your timer to however many seconds you want to disable the mouse and keyboard…and the input will be blocked. You could also comment out the BlockInput(0), and the Input will not return.

BlockInput(1)
$timer = 10
For $i = 1 To $timer Step +1
Sleep(1000)
$Coords = MouseGetPos()
ConsoleWrite($timer  $i &  seconds Remaining & @CRLF)
TrayTip(Keyboard & Mouse Frozen, $timer  $i &  seconds Remaining, 1)
ToolTip($timer  $i &  seconds Remaining, $Coords[0], $Coords[1], Keyboard & Mouse Frozen)
Next
BlockInput(0)