shortcut 'Go to Line'

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
johnthyque
Posts: 27
Joined: 12 Feb 2013 18:21

shortcut 'Go to Line'

Post by johnthyque »

I have over 5000 jpg serialized in one folder. For some reason it needs to be in same folder. Xyplorer displays thumbs gallery syle in one pane only.

I want to put 'link thumbs' right at the top of the list view... so that they will serve as shortcut links to respective jpgs... say on line 1234, line 2555, line 3455.

Is there some way I can achieve this? Any help will be much appreciated.

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

Re: shortcut 'Go to Line'

Post by highend »

The sel scripting command can do that, e.g.:

Code: Select all

    sel 59;
    focus;
Would scroll the 59th item into view and set the focus on it
One of my scripts helped you out? Please donate via Paypal

johnthyque
Posts: 27
Joined: 12 Feb 2013 18:21

Re: shortcut 'Go to Line'

Post by johnthyque »

Hi highend, thank you for your reply.

I have never looked into xyplorer scripting until now... and is still at a lost on where to start.

I see it work on 'Run Script'... but I was thinking of the script run automatically in the background by just clicking on the 'link thumbs' I can assign as shortcut.

Can you advise if this is possible? Thank you.

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: shortcut 'Go to Line'

Post by klownboy »

I'm not positive what you are after, but if you are working in a dual pane mode, you should also check out the features of Sync browse, Sync scroll, and Sync select available from the Pane menu. They also have associated Command IDs that you can use in a script. For example, if you had pane 1 in detail view and pane 2 in thumbnail mode and you select a particular file in pane 1 that's in detail mode, the same file is auto selected in pane 2 in thumbnail mode...nice feature.
johnthyque wrote: Xyplorer displays thumbs gallery style in one pane only
I'm not sure why that is. I can get thumbnails in both panes in gallery mode or any mode either for the same folder or different folders. :?

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

Re: shortcut 'Go to Line'

Post by highend »

Mh, you want real file links point to specific images?

One way (and I guess it's the only one):
Create shortcuts to XYplorer.exe (-> they have a .lnk extension)

Right click such a shortcut, use properties from the context menu
Edit the target field:

Code: Select all

"D:\Users\Highend\Tools\XYplorer\XYplorer.exe" /script="::sel <number>; focus" /flg=2
1. Edit the path to your XYplorer.exe and
2. Change <number> to the real number of an image

Last step: Change the icon for that shortcut by clicking on the different icon button...

If I understood it correctly, what you're trying to achieve...
One of my scripts helped you out? Please donate via Paypal

johnthyque
Posts: 27
Joined: 12 Feb 2013 18:21

Re: shortcut 'Go to Line'

Post by johnthyque »

Wow... that did it! Thank you so much, highend, you're sharp :D

and thanks to klownboy too... nice try... i really appreciate that... helpful ppl... god bless the universe :P

Post Reply