Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AutoHotKey - Fine Horizontal Scrolling for Windows
; Shift + Wheel for horizontal scrolling
+WheelUp::
; Scroll to the left
MouseGetPos,,,id, fcontrol,1
Loop 8 ; <-- Increase for faster scrolling
SendMessage, 0x114, 0, 0, %fcontrol%, ahk_id %id% ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINERIGHT.
return
+WheelDown::
;Scroll to the right
MouseGetPos,,,id, fcontrol,1
Loop 8 ; <-- Increase for faster scrolling
SendMessage, 0x114, 1, 0, %fcontrol%, ahk_id %id% ; 0x114 is WM_HSCROLL and the 1 after it is SB_LINELEFT.
return
@numanair

This comment has been minimized.

Copy link

numanair commented Aug 4, 2017

I could not get this to work in Windows Explorer on Windows 10. Everything else I tested so far is working though.

@fe7ng654123

This comment has been minimized.

Copy link

fe7ng654123 commented Mar 8, 2020

I could not get this to work in Windows Explorer on Windows 10. Everything else I tested so far is working though.

scroll while pressing the right button of the mouse in Windows Explorer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.