Skip to content

Instantly share code, notes, and snippets.

@cheeaun
Created August 4, 2009 03:18
Show Gist options
  • Select an option

  • Save cheeaun/160999 to your computer and use it in GitHub Desktop.

Select an option

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
@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