Long pressing PgUp or PgDn key for WheelUp and WheelDown function.

Ask gaming related questions (AHK v1.1 and older)
rtk71
Posts: 2
Joined: 22 Jan 2018, 18:41
Contact:

Long pressing PgUp or PgDn key for WheelUp and WheelDown function.

22 Jan 2018, 18:44

$PgUp::
KeyWait, PgUp, T0.3
If ErrorLevel
Send {WheelUp down}
Else
Send, {PgUp}
Return
rtk71
Posts: 2
Joined: 22 Jan 2018, 18:41
Contact:

Re: Long pressing PgUp or PgDn key for WheelUp and WheelDown function.

22 Jan 2018, 18:47

Code above ends with PgDn after long press. It makes it diffcult for scrolling to stop where I want it. Please help... thanks
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Long pressing PgUp or PgDn key for WheelUp and WheelDown function.

23 Jan 2018, 05:46

There is no such key as {Wheelup up}. Mouse wheel is unique in that there is no such thing as a release event for wheel.
Think about it, you cannot "Hold" the wheel in the up or down direction (Pressing the wheel in is different, that is middle mouse button, not the wheel), it rotates endlessly.
Rotating the wheel continuously in the same direction does not "Hold" the wheel, it just generates numerous "Press" events.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 154 guests