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

@heymaad
Copy link

heymaad commented May 5, 2025

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}")
}

This works for me too. Thanks.

@dwillis77
Copy link

Works well, thanks. For anyone who wants to scope it to a specific app which may be helpful if you have other mouse-related shortcuts for other specific apps and you don't want those to conflict...also because most Windows apps already do this out of the box, just for some reason there are certain ones that don't such as OneNote...we can use something like the following. Note this is AHK v2 script, not v1.

#HotIf WinActive("ahk_exe ONENOTE.EXE")
    +WheelUp::SendInput "{WheelLeft}"
    +WheelDown::SendInput "{WheelRight}"
#HotIf

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