Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer Topic is solved
- Cr8zy_Ivan
- Posts: 131
- Joined: 30 Mar 2019, 18:20
Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
Has anyone been able to make Shift + MouseWheel scroll horizontally in Windows 10 Explorer?
I've been trying to make this work for the past 2 hours without success.
https://www.autohotkey.com/docs/Hotkeys.htm#Wheel
https://www.autohotkey.com/boards/viewtopic.php?t=20035
https://superuser.com/questions/13763/horizontal-scrolling-shortcut-in-windows/148380
I've seen some posts from 2019 repeating the example in the official Hotkeys documentation (first link). I have to assume that it works for some, but it doesn't for me. Am I the only one for who this script does not work?
Cheers
I've been trying to make this work for the past 2 hours without success.
https://www.autohotkey.com/docs/Hotkeys.htm#Wheel
https://www.autohotkey.com/boards/viewtopic.php?t=20035
https://superuser.com/questions/13763/horizontal-scrolling-shortcut-in-windows/148380
I've seen some posts from 2019 repeating the example in the official Hotkeys documentation (first link). I have to assume that it works for some, but it doesn't for me. Am I the only one for who this script does not work?
Cheers
- littlegandhi1199
- Posts: 195
- Joined: 29 Aug 2016, 23:58
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
+WheelDown::WheelRight
+WheelUp::WheelLeft
This?
Guy says right there
"Thank you, works great in Visual Studio! Too bad it doesn't work in Excel 2013 and Google Chrome. –"
+WheelUp::WheelLeft
This?
Guy says right there
"Thank you, works great in Visual Studio! Too bad it doesn't work in Excel 2013 and Google Chrome. –"
Script Backups on every Execution
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155
Scrabble Solver 4-15 letter word outputs ( # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155
Scrabble Solver 4-15 letter word outputs ( # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285
- Cr8zy_Ivan
- Posts: 131
- Joined: 30 Mar 2019, 18:20
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
For some reason, it doesn't work in Windows 10 Explorer... for me anyway. Does it work on your end?
- littlegandhi1199
- Posts: 195
- Joined: 29 Aug 2016, 23:58
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
Hang on I'll check
Tell me how to setup a view with horizontal scrolling potential.
I turned on view - list or something and it made a wide list but regular scrolling navigated through it normally.
Script Backups on every Execution
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155
Scrabble Solver 4-15 letter word outputs ( # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155
Scrabble Solver 4-15 letter word outputs ( # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285
- Cr8zy_Ivan
- Posts: 131
- Joined: 30 Mar 2019, 18:20
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
I change the view to Detail View, then resize the Explorer Window to be narrower, and a Horizontal Scroll bar should appear.
- littlegandhi1199
- Posts: 195
- Joined: 29 Aug 2016, 23:58
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
Works in notepad
Doesn't work in explorer.
However pressing left and right keys goes to next descriptor (modification date/creation date/Size) etc
Code: Select all
+WheelDown::
Send {Right}
Return
+WheelUp::
Send {Left}
Return
Script Backups on every Execution
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155
Scrabble Solver 4-15 letter word outputs ( # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155
Scrabble Solver 4-15 letter word outputs ( # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285
- Cr8zy_Ivan
- Posts: 131
- Joined: 30 Mar 2019, 18:20
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
Thanks @littlegandhi1199 , I thought of that.
It's not an elegant solution though, as you have to go through every column until you reach the edges of the window. I was hoping to find something more like the Shift + Mouse Wheel function used in Google Chrome and Google Sheets.
It astounds me that Microsoft still hasn't implemented this yet. I've found posts going back 10 years asking for this, and I've found no solutions that work.
It's not an elegant solution though, as you have to go through every column until you reach the edges of the window. I was hoping to find something more like the Shift + Mouse Wheel function used in Google Chrome and Google Sheets.
It astounds me that Microsoft still hasn't implemented this yet. I've found posts going back 10 years asking for this, and I've found no solutions that work.
- Cr8zy_Ivan
- Posts: 131
- Joined: 30 Mar 2019, 18:20
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
I just found this Windows Message: WM_HSCROLL message
https://docs.microsoft.com/en-us/windows/win32/controls/wm-hscroll
I tried it but it doesn't work, and I have to admit, I do not know how to code Windows messages.
Would there be a Windows message expert out there willing to lend a helping hand?
Cheers
https://docs.microsoft.com/en-us/windows/win32/controls/wm-hscroll
I tried it but it doesn't work, and I have to admit, I do not know how to code Windows messages.
Code: Select all
+WheelDown::
{
SendMessage, WM_HSCROLL, SB_LINERIGHT
Return
}
Cheers
- Cr8zy_Ivan
- Posts: 131
- Joined: 30 Mar 2019, 18:20
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer Topic is solved
Although this is not an AHK solution per se, this Freeware does the trick. And does so many other things, it is truly awesome.
QTTabBar
http://qttabbar.wikidot.com/
QTTabBar
http://qttabbar.wikidot.com/
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
You can check out this pure AutoHotkey (v2) alternative in this forum post, seems to work on my machine
- Cr8zy_Ivan
- Posts: 131
- Joined: 30 Mar 2019, 18:20
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
I hate to necro, but this thread is currently the top result on Google for the given problem, and the solutions linked above are painfully overengineered, and also hard to decipher.
I wanna leave future readers a simple solution that doesn't jump through any fiery hoops or take up five pages of code:
I wanna leave future readers a simple solution that doesn't jump through any fiery hoops or take up five pages of code:
Code: Select all
#If WinActive("ahk_exe explorer.exe")
+WheelUp::
Loop 3 ; WM_HSCROLL SB_LINELEFT
PostMessage 0x114, 0,, ScrollBar1
return
+WheelDown::
Loop 3 ; WM_HSCROLL SB_LINERIGHT
PostMessage 0x114, 1,, ScrollBar1
return
#if !WinActive("ahk_exe explorer.exe")
+WheelUp::Send {WheelLeft}
+WheelDown::Send {WheelRight}
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
To give those who don't really care about Windows Explorer, this should variation on Felice's solution works in most programs:
+WheelDown::Send {WheelRight}{WheelRight} ; Shift + Wheel makes the wheel on the mouse horizontal
+WheelUp::Send {WheelLeft}{WheelLeft} ; Shift + Wheel makes the wheel on the mouse horizontal
+WheelDown::Send {WheelRight}{WheelRight} ; Shift + Wheel makes the wheel on the mouse horizontal
+WheelUp::Send {WheelLeft}{WheelLeft} ; Shift + Wheel makes the wheel on the mouse horizontal
Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer
If engineering didn't cause so much pain to you, then maybe you would have noticed the errors of your simplistic ways: it doesn't scroll the window under the mouse cursor, which is how scrolling is supposed to work (just check how your script compares to the regular vertical scroll), but rather scrolls whatever window is active.Felice wrote: ↑07 Jun 2022, 06:47I hate to necro, but this thread is currently the top result on Google for the given problem, and the solutions linked above are painfully overengineered, and also hard to decipher.
I wanna leave future readers a simple solution that doesn't jump through any fiery hoops or take up five pages of code:
(and without error catching functions/comments the script is just one page)