How to make this function possible in AHK, which needs to listen/detect Mouse WheelUp/Down stop-event?
Use continuous wheel up to enter letter a in notepad.exe, when wheel stops, enter letter b?
e.g.
ab
aab
aaab
aaa.....aaab
And not
ba
baa
baaa
baaa.....aaa
How to listen/detect Mouse WheelUp/Down stop-event?
Re: How to listen/detect Mouse WheelUp/Down stop-event?
Hallo,
there's nothing to listen to.
https://www.autohotkey.com/docs/Hotkeys.htm#Wheel
Finally, since mouse wheel hotkeys generate only down-events (never up-events), they cannot be used as key-up hotkeys.
there's nothing to listen to.
https://www.autohotkey.com/docs/Hotkeys.htm#Wheel
Finally, since mouse wheel hotkeys generate only down-events (never up-events), they cannot be used as key-up hotkeys.
Re: How to listen/detect Mouse WheelUp/Down stop-event?
Try this:
Code: Select all
WheelUp::
Send, a
SetTimer, WheelCheck, 50
return
WheelCheck:
if (A_TimeSincePriorHotkey > 100)
{
SetTimer, WheelCheck, Off
Send, b
}
return
Re: How to listen/detect Mouse WheelUp/Down stop-event?
The Timer is Great, Thanks very much!boiler wrote: ↑15 Nov 2019, 08:03Try this:Code: Select all
WheelUp:: Send, a SetTimer, WheelCheck, 50 return WheelCheck: if (A_TimeSincePriorHotkey > 100) { SetTimer, WheelCheck, Off Send, b } return