StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
xinjing  
#1 Posted : Friday, February 7, 2020 9:05:32 PM(UTC)
xinjing

Rank: Newbie

Reputation:

Groups: Approved
Joined: 3/30/2019(UTC)
Posts: 2
Location: NY

I can directly get the name of the folder child through CMD, I do n’t know how the script can get the recursive child file name of the folder in the Explorer window to the clipboard
Thanks in advance
Rob  
#2 Posted : Tuesday, February 11, 2020 5:45:07 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 539
United States

Thanks: 5 times
Was thanked: 116 time(s) in 103 post(s)
Sorry for the late reply. Can you give me a little more details on exactly what you are trying to accomplish?
xinjing2019  
#3 Posted : Wednesday, February 12, 2020 9:00:58 PM(UTC)
xinjing2019

Rank: Newbie

Reputation:

Groups: Approved
Joined: 12/1/2019(UTC)
Posts: 2
United States
Location: NY

Get the names of these files, copy them to the clipboard, or paste them into Notepad
[img=https://photos.app.goo.gl/kcN6f1g1wAh44yXb9]https://photos.app.goo.gl/kcN6f1g1wAh44yXb9[/img]

Edited by user Wednesday, February 12, 2020 9:02:37 PM(UTC)  | Reason: Not specified

Rob  
#4 Posted : Saturday, February 15, 2020 9:16:08 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 539
United States

Thanks: 5 times
Was thanked: 116 time(s) in 103 post(s)
Try this unpublished release (I still need to add the translation entries, Script Help entries, etc. before publishing it):

https://strokesplus.net/files/StrokesPlus.net_Setup_0.3.8.1.exe

Use this script, it will copy the files to the clipboard - it assumes you're drawing the gesture on the Explorer window:
(note: this will not work on the actual Desktop itself, only in a normal Explorer window - but you can select the Desktop folder in Explorer and it will work there)
Code:
var onlyNames = true; //Only include the name, not the full path and name
var includeFolders = true; //Include folders as well as files
var includeLinks = true; //Include links (shortcuts)

var files = sp.GetItemsInExplorer(action.Window.HWnd, onlyNames, includeFolders, includeLinks);
var str = "";
var delim = "";
//Loop through each item
for(i = 0; i < files.Length; i++)
{
    str = str + delim + files[i];
    delim = "\r\n";
}

if(str.length == 0) str = "(no items found)";
clip.SetText(str); //Copy the result to the clipboard

Edited by user Saturday, February 15, 2020 9:23:18 AM(UTC)  | Reason: Not specified

xinjing  
#5 Posted : Tuesday, February 18, 2020 7:21:38 PM(UTC)
xinjing

Rank: Newbie

Reputation:

Groups: Approved
Joined: 3/30/2019(UTC)
Posts: 2
Location: NY

Thank you for your reply.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.