How to use [Ctrl+ mouse wheel] for horizontal scrolling in Autohotkey?

Is there a DO command to do horizontal scrolling in lister?

Just tell Autohotkey to send a standard horizontal scroll message to the window you want it to scroll. Same technique should work with almost all windows/programs.

1 Like
#Requires AutoHotkey v2   ; https://www.autohotkey.com/docs/v2/lib/SendMessage.htm#ExVScrollUp   https://www.autohotkey.com/docs/v2/misc/SendMessageList.htm

#HotIf winActive("ahk_class dopus.lister")
^wheelup::SendMessage 0x0114, 0, 0, ControlGetFocus("A")
^wheeldown::SendMessage 0x0114, 1, 0, ControlGetFocus("A")
#HotIf
2 Likes

Thanks!

But Shift+Wheel only responds to internal functions: Go Back / FORWARD
not work as expected.

Shift & WheelUp::Send "{WheelLeft}"
Shift & WheelDown::Send "{WheelRight}"

"SendMessage" can make Shift+Wheel to work as expected.

thank you!

Shift & WheelUp::SendMessage 0x0114, 0, 0, ControlGetFocus("A")
Shift & WheelDown::SendMessage 0x0114, 1, 0, ControlGetFocus("A")