So maybe making it only work as an ahk hotkey if it's pressed and held down for more than 0.4s, and user moves mouse wheel up will initiate sending !{PgUp}. If Xbutton1 is just pressed quickly like a normal button, it would still function as my normal "back" button.
Tried things along the lines of...
Code: Select all
Xbutton1::
Loop
{
keywait, Xbutton1, T0.4
if (Errorlevel = 1)
{
GetKeyState, state, Xbutton1
if (state = "D") ; so if Xbutton1 is held down...
{
if (WheelUp) ; ....AND mouse wheel up occurs by user...
send, !{PgDn} ;... then send this
}
else
break
}
}
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]