Hello everyone,
the Subject says it all. Is there a way to block all input (keyboard and mouse clicks) but keep the mouse movement?
Having to block the mouse movement with the rest of the input makes my scripts feel more stuttery. If there's a way not to block the mouse, that would allow me also to place it where I want to click next while the scripts are doing their thing.
Block all Input but Mouse Movement? Topic is solved
Re: Block all Input but Mouse Movement? Topic is solved
Hallo,
try:Press Q key and all inputs are blocked for 4 seconds.
try:
Code: Select all
BlockInput()
Return
q::
BlockInput := True
SoundBeep, 4000, 20
Sleep, 4000
BlockInput := False
SoundBeep, 1000, 20
Return
BlockInput()
{ #If BlockInput
Hotkey, IF, BlockInput
For all, LF in [[0x1FF,"sc{:X}"],[0xFF,"vk{:X}"]]
Loop,% LF.1
IF (""<Key:=GetKeyName(Format(LF.2, A_Index)))
Hotkey, *%Key%, BlockInput
BlockInput:
Return
} #If