Assign button to a script file

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
John_C
Posts: 336
Joined: 16 May 2018 20:04

Assign button to a script file

Post by John_C »

Is it possible to assign a user button (you know, these blue-with-white-star ones) to a script file?

I have tried (of course, I have foo.xys in Script folder), but it gives me an error.
button.png
button.png (26.9 KiB) Viewed 486 times
error.png
error.png (7.12 KiB) Viewed 486 times

klownboy
Posts: 4140
Joined: 28 Feb 2012 19:27

Re: Assign button to a script file

Post by klownboy »

You have to load the script file. load "foo.xys"; Take a look at script command "load in Scripting Commands Reference in the Help for more examples. You shouldn't need a path before the script as long as it resides in your XYplorer script folder.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

John_C
Posts: 336
Joined: 16 May 2018 20:04

Re: Assign button to a script file

Post by John_C »

@klownboy

Works, thanks.

Post Reply