Code: Select all
#Persistent
BlockInput, Send
msgbox, KeyBoard OFF
Return
Code: Select all
#Persistent
BlockInput, Send
msgbox, KeyBoard OFF
Return
RussBlockInput, OnOff
BlockInput, SendMouse
BlockInput, MouseMove ; [v1.0.43.11+]
@ibieel, based on these docs, I can't see anything unexpected here.https://www.autohotkey.com/docs/v1/lib/BlockInput.htm#Parameters wrote:SendMouse
This mode only blocks user inputs while specific send and/or mouse commands are in progress. Specify one of the following words:
Send: The user's keyboard and mouse input is ignored while a Send or SendRaw is in progress (the traditional SendEvent mode only). This prevents the user's keystrokes from disrupting the flow of simulated keystrokes. When the Send finishes, input is re-enabled (unless still blocked by a previous use of BlockInput On).
[...]
when I give the command "BlockInput, On" I can't type anything.gregster wrote: ↑27 Apr 2023, 09:29Afaics, Blockinput, Send is valid syntax, but since the script doesn't send anything, I am not sure what OP's code snippet wants to prove:@ibieel, based on these docs, I can't see anything unexpected here.https://www.autohotkey.com/docs/v1/lib/BlockInput.htm#Parameters wrote:SendMouse
This mode only blocks user inputs while specific send and/or mouse commands are in progress. Specify one of the following words:
Send: The user's keyboard and mouse input is ignored while a Send or SendRaw is in progress (the traditional SendEvent mode only). This prevents the user's keystrokes from disrupting the flow of simulated keystrokes. When the Send finishes, input is re-enabled (unless still blocked by a previous use of BlockInput On).
[...]