Lost custom button commands

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Anthraquinone
Posts: 24
Joined: 08 May 2013 23:44

Lost custom button commands

Post by Anthraquinone »

After a computer problem and a new SSD (I really like the speed of this) I have lost a couple of custom scripts I used to use a lot. Both were assigned to buttons. I am sure I picked the info up on how to code them from the What's New info but cannot now find it. If any one can point me in the right direction I will be most greatful

One simply copied the current folder into the other pane whan using dual panes.
The second opened a file or group of liles in a program other that the one normally accociated with it. For example open "my_book.epub" with the main Calibre program NOT the Calibre book reader.

Thanks for any help

AQ

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

Re: Lost custom button commands

Post by highend »

You mean scripts like these?

Code: Select all

    // Use a specific app to open selected items
    $app = "D:\Tools\Sublime Text\sublime_text.exe";
    $sel = '"' . get("SelectedItemsPathNames", '" "') . '"';
    if ($sel != '""') { run """$application"" $sel"; }

Code: Select all

    // Copy the current folder (that you're in) into the current tab in the
    // inactive pane as a new subfolder (only when dual pane is active)
    if (get("#800")) { copyitem <curpath>, get("path", "i") . "\" . gpc(<curpath>, "base"); }
One of my scripts helped you out? Please donate via Paypal

Anthraquinone
Posts: 24
Joined: 08 May 2013 23:44

Re: Lost custom button commands

Post by Anthraquinone »

Thanks for that.

These scripts do not ring any bells with me so prehaps I set it up a different way or I am just getting old. But whatever works.

I will have a look at these scripts and see if I can understand them

AQ

Post Reply