Pan all the way left & right

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
CutterKin
Posts: 13
Joined: 02 Jul 2017 19:32

Pan all the way left & right

Post by CutterKin »

I haven't been around in a while because XYplorer has been working perfectly for me in my very specific use case for several years and through several OS upgrades. I've been very happy about that. But now I've run into a small issue.

I purchased and am still using version 18.10.0100 but would be happy upgrade if that is what I need to do to accomplish this.

My issue is with panning left or right via the horizontal scroll bar that appears at the bottom of the screen when a filename is too long to fully display. I know that (obviously) I can use the mouse to drag the bar left or right, but for my use case I would like to figure out how to have a single keypress pan all the way right, to the end of the longest filename in that particular folder (so that the next column is now visible), and another single keypress (of a different key) to pan all the way back left again.

I've looked through the help file for both the version I am using and the current version but can't figure out how to accomplish this seemingly simple task. Scripting maybe?

I'd appreciate any help or thoughts on this.

highend
Posts: 14956
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Pan all the way left & right

Post by highend »

There is only one way to do this, use a script (one for each scroll direction), e.g. to scroll left:

Code: Select all

    if (get("focusedcontrol")) { focus "L"; }
    sendkeys "{Left 50}";
You have to play with the value for the key, maybe 50 isn't enough, depends on your column layout...

Add that as a user defined command and bind a keyboard shortcut to it...
One of my scripts helped you out? Please donate via Paypal

CutterKin
Posts: 13
Joined: 02 Jul 2017 19:32

Re: Pan all the way left & right

Post by CutterKin »

Thank you for the info, I appreciate it.

I haven't tried scripting yet but will do so today. You solution looks similar to the kludge that I have been using - filling the keyboard buffer with left or right arrow presses with an external utility called nircmd. A have also used it to send mouse clicks to the correct area of the screen which pans much more quickly, but both ways have minor issues since they are "dumb" and don't know if the bar they are trying to move around is actually on the screen at the time they are invoked. It works, more or less, but is obviously rather inelegant.

I will try your code tonight and see if it works better. Thank you again.

highend
Posts: 14956
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Pan all the way left & right

Post by highend »

One of my scripts helped you out? Please donate via Paypal

Post Reply