How to copy selected text to clipboard
Posted: 20 Mar 2015 00:26
My overall goal is to create a user button that will do a Search & Replace on all files in the current folder, deleting from each filename the text that I have highlighted / selected in one of those filenames. My script now looks like this:
However, I have to press Ctrl-C myself before running it, to get the selected text onto the clipboard. I would like to use:
but #201 drops what I have manually selected and instead selects the whole name.
--> To fix this I need the script equivalent of "Ctrl-C", so that I can highlight part of a filename and have that text (only) copied to the clipboard. Unfortuntately, using #201 does not copy the selected text; it copies the whole filename (less extension).
Thanks for any suggestions.
-----------------
Searching, I did find a thread which indicates that copying the selected text can't be done. However, XY has so much capability, and this seems like such a mundane thing, that I want to ask before I give up.
ref thread: http://www.xyplorer.com/xyfc/viewtopic. ... xt#p118006
Code: Select all
selfilter , f;
rename s, <clipboard>/, p;Code: Select all
#201;
selfilter , f;
rename s, <clipboard>/, p;--> To fix this I need the script equivalent of "Ctrl-C", so that I can highlight part of a filename and have that text (only) copied to the clipboard. Unfortuntately, using #201 does not copy the selected text; it copies the whole filename (less extension).
Thanks for any suggestions.
-----------------
Searching, I did find a thread which indicates that copying the selected text can't be done. However, XY has so much capability, and this seems like such a mundane thing, that I want to ask before I give up.
ref thread: http://www.xyplorer.com/xyfc/viewtopic. ... xt#p118006