Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Created August 4, 2009 03:18
Show Gist options
  • Save cheeaun/160999 to your computer and use it in GitHub Desktop.
Save cheeaun/160999 to your computer and use it in GitHub Desktop.
AutoHotkey: Shift + Wheel for horizontal scrolling
; Shift + Wheel for horizontal scrolling
+WheelDown::WheelRight
+WheelUp::WheelLeft
@ozzytr
Copy link

ozzytr commented Mar 30, 2022

how to do install and use in win10?

you can download autohotkey from here https://www.autohotkey.com/download/ and copy above code in notepad and save as AHK extension. After that open your AHK file in Autohotkey and convert as a EXE and run it your tiny exe.

@Polisson
Copy link

Polisson commented Jan 5, 2023

It doesn't work because it sends also Shift, perceived as Shift+WheelRight or Shift+WheelLeft

@iskmz
Copy link

iskmz commented Jul 20, 2024

It doesn't work because it sends also Shift, perceived as Shift+WheelRight or Shift+WheelLeft
@Polisson
your comment made me figure out the following fix :-

; Shift + Wheel for horizontal scrolling
+WheelDown::Send {WheelRight}
+WheelUp::Send {WheelLeft}

tested and working on windows 10

@chankm
Copy link

chankm commented Oct 3, 2024

Hi all,

In case some people are still not able to fix, this seems to work for me.
I am currently using Windows 10, AutoHotkey_2.0.18

#Requires AutoHotkey v2

LShift & WheelDown:: {
    Send("{WheelRight}")
}

LShift & WheelUp:: {
    Send("{WheelLeft}")
}

@raphp-ait
Copy link

Hi all,

In case some people are still not able to fix, this seems to work for me. I am currently using Windows 10, AutoHotkey_2.0.18

#Requires AutoHotkey v2

LShift & WheelDown:: {
    Send("{WheelRight}")
}

LShift & WheelUp:: {
    Send("{WheelLeft}")
}

works like a charm. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment