Is there any way to detect whether a hotkey to take effect
Is there any way to detect whether a hotkey to take effect
Is there any way to regularly check whether the hotkey of the current script is effective, if not effective to reload the hooks
Re: Is there any way to detect whether a hotkey to take effect
Hallo,
you could check the effectiveness with a higher priority send (SendLevel) that calls the Hotkey.
But it is easier to enable with the hotkey command. It doesn't matter if the Hotkey was disabled, after that it is active.
https://www.autohotkey.com/docs/commands/Hotkey.htm
you could check the effectiveness with a higher priority send (SendLevel) that calls the Hotkey.
But it is easier to enable with the hotkey command. It doesn't matter if the Hotkey was disabled, after that it is active.
https://www.autohotkey.com/docs/commands/Hotkey.htm
Re: Is there any way to detect whether a hotkey to take effect
Thank you very much for your reply,my code is as follows,The right mouse button press hook always failureRohwedder wrote: ↑03 Dec 2021, 04:42Hallo,
you could check the effectiveness with a higher priority send (SendLevel) that calls the Hotkey.
But it is easier to enable with the hotkey command. It doesn't matter if the Hotkey was disabled, after that it is active.
https://www.autohotkey.com/docs/commands/Hotkey.htm
Code: Select all
~Rbutton::
KeyWait, rbutton, T0.5
If ErrorLevel
{
KeyWait, Rbutton, U
click
return
}
Return
Re: Is there any way to detect whether a hotkey to take effect
I often use short beeps to be able to hear the script status.
This script sounds right!
Code: Select all
~Rbutton::
SoundBeep, 4000, 20
KeyWait, rbutton, T0.5
If ErrorLevel
{
KeyWait, Rbutton, U
SoundBeep, 2000, 20
click
return
}
SoundBeep, 1000, 20
Return
Who is online
Users browsing this forum: Google [Bot] and 107 guests