Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Cr8zy_Ivan
Posts: 131
Joined: 30 Mar 2019, 18:20

Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by Cr8zy_Ivan » 24 May 2020, 13:58

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

User avatar
littlegandhi1199
Posts: 195
Joined: 29 Aug 2016, 23:58

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by littlegandhi1199 » 30 May 2020, 14:19

+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. –"
Script Backups on every Execution :mrgreen:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155

Scrabble Solver 4-15 letter word outputs ( :crazy: # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285

User avatar
Cr8zy_Ivan
Posts: 131
Joined: 30 Mar 2019, 18:20

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by Cr8zy_Ivan » 30 May 2020, 16:47

For some reason, it doesn't work in Windows 10 Explorer... for me anyway. Does it work on your end?

User avatar
littlegandhi1199
Posts: 195
Joined: 29 Aug 2016, 23:58

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by littlegandhi1199 » 30 May 2020, 16:51

GaXve wrote:
30 May 2020, 16:47
For some reason, it doesn't work in Windows 10 Explorer... for me anyway. Does it work on your end?
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 :mrgreen:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155

Scrabble Solver 4-15 letter word outputs ( :crazy: # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285

User avatar
Cr8zy_Ivan
Posts: 131
Joined: 30 Mar 2019, 18:20

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by Cr8zy_Ivan » 30 May 2020, 17:06

I change the view to Detail View, then resize the Explorer Window to be narrower, and a Horizontal Scroll bar should appear.

User avatar
littlegandhi1199
Posts: 195
Joined: 29 Aug 2016, 23:58

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by littlegandhi1199 » 30 May 2020, 18:18

GaXve wrote:
30 May 2020, 17:06
I change the view to Detail View, then resize the Explorer Window to be narrower, and a Horizontal Scroll bar should appear.
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
I would use this for a workaround and just add more descriptors to add as many steps as needed
Script Backups on every Execution :mrgreen:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155

Scrabble Solver 4-15 letter word outputs ( :crazy: # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285

User avatar
Cr8zy_Ivan
Posts: 131
Joined: 30 Mar 2019, 18:20

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by Cr8zy_Ivan » 03 Jun 2020, 09:49

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.

User avatar
Cr8zy_Ivan
Posts: 131
Joined: 30 Mar 2019, 18:20

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by Cr8zy_Ivan » 03 Jun 2020, 10:10

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.

Code: Select all

+WheelDown::
{
	SendMessage, WM_HSCROLL, SB_LINERIGHT
	Return
}
Would there be a Windows message expert out there willing to lend a helping hand?

Cheers

User avatar
Cr8zy_Ivan
Posts: 131
Joined: 30 Mar 2019, 18:20

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer  Topic is solved

Post by Cr8zy_Ivan » 15 Jun 2020, 06:17

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/

eugenesv
Posts: 171
Joined: 21 Dec 2015, 10:11

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by eugenesv » 30 Nov 2021, 03:53

You can check out this pure AutoHotkey (v2) alternative in this forum post, seems to work on my machine :)


Felice
Posts: 1
Joined: 07 Jun 2022, 02:20

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by Felice » 07 Jun 2022, 06:47

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:

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}

jmnm00
Posts: 2
Joined: 16 Mar 2018, 09:31

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by jmnm00 » 11 Jan 2023, 12:48

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

eugenesv
Posts: 171
Joined: 21 Dec 2015, 10:11

Re: Horizontal Scroll with Shift + MouseWheel in Windows 10 Explorer

Post by eugenesv » 11 Jan 2023, 15:19

Felice wrote:
07 Jun 2022, 06:47
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:
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.
(and without error catching functions/comments the script is just one page)

Post Reply

Return to “Ask for Help (v1)”