I am trying to block the keyboard input but not the mouse input. Before anyone says it I am running the script with admin rights. I've tried,
BlockInput, On ; which blocks the keyboard and mouse
BlockInput, MouseMoveOff ; which doesn't block the keyboard
I have also tried the two together,
BlockInput, On
BlockInput, MouseMoveOff
which blocks the keyboard and mouse input.
Please point me in the right direction.
My problem is multiple key presses are overlapping within the script which causes issues. I may have the wrong approach to my problem?
Block Keyboard Input Not Mouse
Re: Block Keyboard Input Not Mouse
Hallo,
try:
try:
Code: Select all
Input, q
Re: Block Keyboard Input Not Mouse
Wouldn't that pause the thread from continuing to execute?
What I want to do is block all threads until the current thread completes without blocking the mouse input.
What I want to do is block all threads until the current thread completes without blocking the mouse input.
Re: Block Keyboard Input Not Mouse
I also tried,
Critical
same problem.
Critical
same problem.
Re: Block Keyboard Input Not Mouse
Hallo,
just run this
as a second script.
just run this
Code: Select all
Input, q
Code: Select all
^LButton::Gosub, KeyBoardOff
+LButton::Gosub, KeyBoardOn
KeyBoardOff:
IF KeyBoardOff
Return
FileDelete, ~.ahk
FileAppend, #NoTrayIcon`nInput`, q, ~.ahk
Run, ~.ahk,,, KeyBoardOff
Return
KeyBoardOn:
Process, Close, %KeyBoardOff%
KeyBoardOff =
Return
Re: Block Keyboard Input Not Mouse
Thank you for the reply. I was hoping for a built in solution. I guess I'll have to implement an if statement.