Page 1 of 1

How to Run XYS Script as a Macro or a ShortCut ?

Posted: 13 Apr 2023 17:33
by stoik
Please forgive my ignorance, these are truly the first toddler steps in the complex world of XYplorer scripting.

I truly tried searching in the program's embedded help file, and in this forum, but the search result were a "killer" to me, like a kid asking "what day is it today" and he gets 10 thousand answers, I got an Amazon jungle thrown at me without being able to spot a the right tree from the huge forest offered.

SO HERE IS MY QUESTION :

I want to associate the "event sounds" (new function) XYS file (contains : ces(); //show "Edit Event Sounds" dialog) with my system so that a plain click on that XYS file will show the Event Sounds dialog.

Or a tweaked shortcut (like those with some extra command-line info) will also do.

But simply associating XYS files with XYplorer in my system (Windows 10), e.g. the way I would associate JPG files with Irfan View, doesn't do the job.

A tweaked shortcut with the command-line "C:\...\XYplorer\XYplorer.exe" "C:\...\XYplorer\Data\Scripts\Event Sounds.xys" also doesn't work.

Basically, I am trying to avoid having to go through multiple clicks to execute this : Menu -> Scripting -> Run Script -> enter "ces(); //show "Edit Event Sounds" dialog" -> OK.

I want it to be a one-click thing.

Thanks in advance !

Re: How to Run XYS Script as a Macro or a ShortCut ?

Posted: 13 Apr 2023 17:38
by highend
E.g. put it on a user defined button?
Screenshot 2023-04-13 at 17.37.38.png

Re: How to Run XYS Script as a Macro or a ShortCut ?

Posted: 13 Apr 2023 18:02
by stoik
Good idea, this toolbar thing ...
A step in the right direction for me, for sure.

Nevertheless, toolbar space is so precious and limited, that I hate to waste it on a function that I will be using so relatively rarely. Once I adjust/tweak sounds to my liking, I wont be needing it much.

With hundreds of possible useful scripts in mind, shortcuts or file association would still be more convenient for me. I don't have space for hundreds of toolbar buttons. In other words, it's not just about "Event Sounds", it's the general principal that interests me.

But thanks for a VERY USEFUL IDEA, HighEnd !
It certainly expands one's options.

Re: How to Run XYS Script as a Macro or a ShortCut ?

Posted: 13 Apr 2023 18:08
by jupe
Add an entry like this to CFA:

xys>::#751

https://www.xyplorer.com/tour.php?page=pom

Re: How to Run XYS Script as a Macro or a ShortCut ?

Posted: 13 Apr 2023 18:13
by stoik
BRILLIANT !!

This "Custom Files Associations" (CFA) tweak
is just what I wanted.

Thanks, Jupe !