Horizontal Scrolling with RMouse+Wheel

Discussion, questions and support.
Post Reply
lomacar
Posts: 6
Joined: Jan 21st, ’18, 23:46

Post by lomacar » Jul 15th, ’18, 12:31

Is there a way to do horizontal scrolling by turning the mouse wheel while holding down the right-click button? It seems that FK only allows one mouse input at a time. Also, is there any way to trigger real scrolling as opposed to say just triggering the right or left arrow keys?
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Jul 15th, ’18, 15:00

Scroll left - Shortcut: ~RButton & WheelUp

Code: Select all

MouseGetPos,,,id, fcontrol,1
Loop 8 ; <-- Increase for faster scrolling
	SendMessage, 0x114, 0, 0, %fcontrol%, ahk_id %id% ;0x114 - WM_HSCROLL
return
Scroll right - Shortcut: ~RButton & WheelDown

Code: Select all

MouseGetPos,,,id, fcontrol,1
Loop 8 ; <-- Increase for faster scrolling
	SendMessage, 0x114, 1, 0, %fcontrol%, ahk_id %id% ;0x114 - WM_HSCROLL
return
Double-click on the shortcut field to enter above shortcuts.
Type: Command
lomacar
Posts: 6
Joined: Jan 21st, ’18, 23:46

Post by lomacar » Jul 17th, ’18, 08:09

Thanks,

I never new about the double-click thing for the shortcut.

However, I am not getting any horizontal scroll action from this. Also, I guess I would need a way to prevent the normal right-click behavior of apps and the OS. Is that even possible?
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Jul 20th, ’18, 18:54

I tested again on Win10 and Win7 and it works for me - holding right mouse button while scrolling a wheel gives me a horizontal scroll. You can disable normal right click by omitting a "~" character in the shortcut.
lomacar
Posts: 6
Joined: Jan 21st, ’18, 23:46

Post by lomacar » Jul 23rd, ’18, 01:14

Hmm, for me, in Windows 10 it does not work, unless the horizontal scrollbar is the only one, in which case normal scrolling will work anyway. I tested in Windows Explorer and LibreOffice Calc.

Also, removing the tildes prevents right-clicking from working anywhere ever, so that isn't a workable solution.

Oh well, it is not really important. I just thought it would be neat to have.
Per Tais
Posts: 1
Joined: Jan 26th, ’21, 09:59

Post by Per Tais » May 10th, ’22, 13:36

I would prefer Shift + WheelDown for horizontal right - and likewise, Shift - WheelUp for horizontal left.
How would the Command for that be?
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » May 12th, ’22, 19:06

The above solution unfortunately no longer works on a new Windows versions. :x
Post Reply