Hello,
When using AHK, especially when running something like Radials along with other day-to-day scripts, there are times when certain buttons doesn't work or gets stuck-state. Like the system would have CTRL key pressed down all the time, or right-button mouse wouldn't work, etc.
I usually restart/reload the script to solve this, but are there any good practices to avoid this or deal with this situation?
Thanks,
How to prevent certain keys from not working when using AHK
- Brazolek123
- Posts: 187
- Joined: 06 Jun 2016, 16:02
Re: How to prevent certain keys from not working when using AHK
I'd suggest to look up at your scripts and change the way mouse/keyboard is simulated. Examplery if you are using ControlSend...{^F1} try to make it
or even better:
You can aswell experiment some with:
also in some cases short sleep of 5 to 15 ms in above scripts might ensure better reliability. Maybe somone more experienced users may have some other, better ideas, gl.
Code: Select all
ControlSend... {Control Down}
ControlSend... {F1}
ControlSend... {ControlUp}
Code: Select all
BlockInput, Keyboard, On
ControlSend... {Control Down}
ControlSend... {F1}
ControlSend... {ControlUp}
BlockInput, Keyboard, Off
Code: Select all
KeyWait, Control
ControlSend... {Control Down}
ControlSend... {F1}
ControlSend... {Control Up}
Who is online
Users browsing this forum: Google [Bot] and 383 guests