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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
stoik
Posts: 150
Joined: 01 May 2013 19:51

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

Post 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 !

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post by highend »

E.g. put it on a user defined button?
Screenshot 2023-04-13 at 17.37.38.png
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

stoik
Posts: 150
Joined: 01 May 2013 19:51

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

Post 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.

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post by jupe »

Add an entry like this to CFA:

xys>::#751

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

stoik
Posts: 150
Joined: 01 May 2013 19:51

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

Post by stoik »

BRILLIANT !!

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

Thanks, Jupe !

Post Reply