How to make a button to run an existing script?

Discuss and share scripts and script files...
Post Reply
ghost zero
Posts: 842
Joined: 26 Apr 2010 17:48

How to make a button to run an existing script?

Post by ghost zero »

Anyone know how I can make a button to run an existing script? I want the button to link to the script so that if I changed the script, I don't need to update the button.

Note: In the "user" menu, I have 2 "open with" scripts and 1 "run script" script. I want to make buttons for each of them.

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: How to make a button to run an existing script?

Post by binocular222 »

You want to add custom toolbar button?
Right click Toolbar > Customize toolbar > Add a few User Buttons > OK
Right click any newly added user button > Edit > On click: Load "ScriptName.xys"

I advise that you save scripts to separate .xys files for easy calling instead of wirting it directly in User > Manage command > open with...
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: How to make a button to run an existing script?

Post by Stefan »

ghost zero wrote:Anyone know how I can make a button to run an existing script?
Hi, I had posted a picture over there > http://www.xyplorer.com/xyfc/viewtopic. ... 908#p40908


Maybe that helps a bit...






- - -
XYplorer post 1234.png
To see the attached files, you need to log into the forum.

Post Reply