Script not producing expected results

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cldcp00
Posts: 52
Joined: 20 Jun 2019 15:26

Script not producing expected results

Post by cldcp00 »

Hi

I have a simple script in my catalog which should copy the file name to the clipboard but instead it copies the folder name

::#102

Any ideas

Regards

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Script not producing expected results

Post by RalphM »

The file loses focus when you click your catalog item thus copying the parent folder name to the clipboard.

To prevent this, either:
1. Use Ctrl+Shift+P or
2. Create a User Button for it or
3. Make your catalog script a multiline script as follows:

Code: Select all

 focus l; 
 #102
Where the first command puts the focus back to the list.
Notice the spaces at the beginning which are needed for at least the first line, so best select all in the code window and paste it into your catalog item as shown below:
PicPick_451.jpg
PicPick_451.jpg (124.07 KiB) Viewed 331 times
This worked for me as intended.
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

Post Reply