How to scroll specific item into view?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

How to scroll specific item into view?

Post by binocular222 »

Both sel and #1049 has drawback: if target item is already in vew and in the middle of screen, these command scroll to make it top/bottom-of screen.

I'm thinking of how to get list of items in view so that I can stop these commands if target item is already in view.
Is this possible?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 66324
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to scroll specific item into view?

Post by admin »

sel seems to work as you desire.

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: How to scroll specific item into view?

Post by binocular222 »

It doesn't make sense when target item is already in view (i.e: nicely in the middle of screen) but sel and #1049 force it to be scrolled to top-of-screen
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 66324
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: How to scroll specific item into view?

Post by admin »

No, sel works, I tested it with fresh.

Code: Select all

sel "[filename]";

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: How to scroll specific item into view?

Post by binocular222 »

Oh, found it. That's because I had #486 before sel
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Post Reply