Freeze/Disable Mouse&keyboard movement
Posted: 11 Aug 2018, 07:40
Can anyone make a simple script that when i press ctrl+s, it will disable keyboard and mouse
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=76&t=53815
Code: Select all
^s:: ; Ctrl+S
BlockInput, On ; Disable keyboard and mouse input
Sleep, 5000
BlockInput, Off ; Enable keyboard and mouse input
return
Code: Select all
Esc::
BlockInput, Off ; Enable keyboard and mouse input
return
Code: Select all
s:: ; Ctrl+S
BlockInput, On ; Disable keyboard and mouse input
Esc::
BlockInput, Off ; Enable keyboard and mouse input
return
Code: Select all
^s:: ; Ctrl+S
KeyWait Control ; waiting that controll wil relese to not have "stuck down"
BlockInput, On ; Disable keyboard and mouse input
return ; missed that return in first code
$~esc::
BlockInput Off