Horizontal Scrolling with RMouse+Wheel
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?
Scroll left - Shortcut: ~RButton & WheelUp
Scroll right - Shortcut: ~RButton & WheelDown
Double-click on the shortcut field to enter above shortcuts.
Type: Command
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
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
Type: Command
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?
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?
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.
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.
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.
I would prefer Shift + WheelDown for horizontal right - and likewise, Shift - WheelUp for horizontal left.
How would the Command for that be?
How would the Command for that be?
The above solution unfortunately no longer works on a new Windows versions.