Page 1 of 1

Assign button to a script file

Posted: 04 Jul 2019 19:43
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

Re: Assign button to a script file

Posted: 04 Jul 2019 19:50
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.

Re: Assign button to a script file

Posted: 04 Jul 2019 20:00
by John_C
@klownboy

Works, thanks.