starting a script by clicking on a PaperFolder item

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Re: starting a script by clicking on a PaperFolder item

Post by zakhar »

autocart wrote: ↑02 Nov 2021 16:01 why do you, zakhar expect *.txt to be triggered when clicking a folder?
Not "*.txt", but "<xypaper>\*.txt".
The above mentioned entry in XYplorer's Help file
"XYplorer native variables and environment variables are supported in the pattern list. E.g., the following pattern will only match TXT files in the Paper Folder folder:
<xypaper>\*.txt>::echo <focitem>;"
communicates "<xypaper>\*.txt" with a script command "echo ...;".
So I thought, this will work for loaded paperfolders,
did not take "the following pattern will only match TXT files in the Paper Folder folder" in attention.

zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Re: starting a script by clicking on a PaperFolder item

Post by zakhar »

Okay, :)
Here I would like to thank highend and autocart for their explanations.
They have brought me forward to the decision what to do.


zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Re: starting a script by clicking on a PaperFolder item

Post by zakhar »

After the paperfolder is loaded:
1. select item,
2. use User Button in the Toolbar with a script.


Millzey
Posts: 169
Joined: 07 Oct 2011 15:10

Re: starting a script by clicking on a PaperFolder item

Post by Millzey »

tried to follow this thread and I might misunderatnd, but highends suggestion to me for viewtopic.php?p=192594 got me thinking a CEA event would help here also, using middle click perhaps, instead of having to go all the way up to the toobar to click

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

Re: starting a script by clicking on a PaperFolder item

Post by highend »

highend wrote: ↑02 Nov 2021 15:58 Of course not. CFA doesn't support folders, use a custom event action with a changing location event for these
...

CFA could handle a double click on files perfectly fine
One of my scripts helped you out? Please donate via Paypal

Post Reply