Home/End Key for horizontal scroll

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
guldamkwak
Posts: 7
Joined: 08 Dec 2021, 05:52

Home/End Key for horizontal scroll

Post by guldamkwak » 08 Dec 2021, 22:23

Autohotkey supports WheelRight and WheelLeft
Window keyboard supports Home key and End key, which go to the most top / go to the most bottom ,respectively.
Can we make autohotkey shortcut that orders go to the most left / go to the most right , in horizontal scrolling?

User avatar
lmstearn
Posts: 694
Joined: 11 Aug 2016, 02:32
Contact:

Re: Home/End Key for horizontal scroll

Post by lmstearn » 09 Dec 2021, 04:11

Hi, yes certainly there are plenty of ideas over at this thread:
https://superuser.com/questions/13763/horizontal-scrolling-shortcut-in-windows
The idea is to replace the Wheelup/Wheeldown mouse hotkeys with the keys of your choice. Might be a bit tricky.
That's a bump to implement functionality into the PicScroller script, thanks. At present, the left and right arrows + with Win/Alt/Ctrl do nut. Got +Wheelup and +Wheeldown in there, but it's doing nothing at the moment. :(
Edit: Found the undocumented feature soon to be documented! Shift-Arrows scroll left right in PicScroller, but Shift-Pageup and Shift-Pagedown do not. Looks like code for SB_Left and SB_Right was left out, which is the kind of thing you want. Will update soon. :)
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH

guldamkwak
Posts: 7
Joined: 08 Dec 2021, 05:52

Re: Home/End Key for horizontal scroll

Post by guldamkwak » 09 Dec 2021, 11:06

They are mainly for wheelup/wheeldown. I am looking for alternative for home/end.

User avatar
mikeyww
Posts: 26938
Joined: 09 Sep 2014, 18:38

Re: Home/End Key for horizontal scroll

Post by mikeyww » 09 Dec 2021, 11:29

Code: Select all

F3::SendInput {WheelRight 999}

User avatar
lmstearn
Posts: 694
Joined: 11 Aug 2016, 02:32
Contact:

Re: Home/End Key for horizontal scroll

Post by lmstearn » 09 Dec 2021, 22:24

Also, PicScroller has implemented those changes for you. It uses system scrollbars- when working with SBs found in controls like ListBox or ListView, the same principles apply, just extra fiddles in the code are called for. :)
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH

Post Reply

Return to “Ask for Help (v1)”