Hello, dear XYplorer Community!
My wish is as follows:
XYplorer should have a function to load a script by clicking directly on a file / folder.
I use many lnk-files to open folders and files.
But the problem is, that the lnk-files of windows open/start only
one item at once. (Using bat-files is not convenient for me). The mentioned function of XYplorer would make possible
to not only open files/folders, but also add any scripting functionality
to this action and therefore effectively replace lnk-files of windows for those
using this function.
My "subwish" in this direction is that XYplorer could be able to load a script if a file/folder
is clicked, which name contains a marker, that could be recognised by XYplorer as a command
to open an associated script. The marker and the associated script could be defined
by user somewhere in XYplorer's settings.
Example:
The file name is "birthdays_list_X123.xls" or "birthdays_X123_list.xls" or "X123_birthdays_list.xls".
The "X123" sequence is set by user as marker to load a script.xys.
Every time a file/folder with "X123" sequence is clicked in XYplorer the script.xys is executed.
This mechanism could also work if XYplorer is commanded to open a file / folder with
marker sequence per command line.
Thank you!
Starting a script by clicking on file/folder and markers
Re: Starting a script by clicking on file/folder and markers
You are free to use CFAs to do this (at least by double clicking on files)...
and markers?
Tag those items and let the initial script decide what to do and what subscript to load by reading that tag...
Code: Select all
*>::load "your script to handle everything.xys";
Tag those items and let the initial script decide what to do and what subscript to load by reading that tag...
One of my scripts helped you out? Please donate via Paypal
Re: Starting a script by clicking on file/folder and markers
Thanks, highend!
It does what I wanted!
It does what I wanted!
Re: Starting a script by clicking on file/folder and markers
I have added the line
under CFAs.
Is it possible to conditionally bypass this setting in the script.xys?
The problem is, that the code placed in the script.xys
that normally leads to the normal function of a lnk-file (opening of something by XYplorer)
makes a loop and loads the script.xys again.
Code: Select all
lnk>..\script.xys
Is it possible to conditionally bypass this setting in the script.xys?
The problem is, that the code placed in the script.xys
Code: Select all
open "C:\...\*.lnk";
makes a loop and loads the script.xys again.
Re: Starting a script by clicking on file/folder and markers
Don't use
Get the
open
on a lnk?Get the
#LinkTarget
property of the clicked .lnk and use a goto
insteadOne of my scripts helped you out? Please donate via Paypal
Re: Starting a script by clicking on file/folder and markers
Yes!
It works!
Thank you, highend!
It works!
Thank you, highend!