If you press the Right mouse button and scroll, right-click will not register, hence no unwanted menu will open. If you don't scroll, right-click will work.
Code: Select all
RButton::
FastScroll := 0
hotkey, Wheelup , HK1, on
hotkey, Wheeldown , HK2, on
keywait, RButton
hotkey, Wheelup , HK1, off
hotkey, Wheeldown , HK2, off
if (FastScroll = 0)
{
send, {RButton}
}
return
HK1:
send, {wheelup 4}
if (FastScroll = 0)
{
FastScroll := 1
}
return
HK2:
send, {wheeldown 4}
if (FastScroll = 0)
{
FastScroll := 1
}
return