I have an AHK script, that is called from another application with a parameter:
text = %1%
WinWaitActive, foobar, , 5
if ErrorLevel {
Exit
}
Sleep, 300
SendInput, %text%{Enter}
There can be issues if there is a click during the "sleep". So I would like to enable a hotkey like:
LButton::return
...during the sleep to block the mouse. The blocking should be disabled when the script finishes.
Is that possible?
You can disable one or more keys within a thread temporarily by using a boolean variable: