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
error.png
To see the attached files, you need to log into the forum.

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

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.

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