I see it's getting smaller...Muroph wrote:Updated to v3.2 after the %temp% bug fix.
Now:
Code: Select all
//copy items to clipboard and save in a variable
#101;
set $items, <clipboard>;Code: Select all
getitems $items;I see it's getting smaller...Muroph wrote:Updated to v3.2 after the %temp% bug fix.
Code: Select all
//copy items to clipboard and save in a variable
#101;
set $items, <clipboard>;Code: Select all
getitems $items;if it's meant only to assign a variable value, i think it'd be better if it was actually a new variable (like the <curitem> var.) instead of a command.admin wrote:when I'm back from the beach I will add a scripting command that will copy items directly into a variable, so you do not have to go the clipboard way:
Now:Then:Code: Select all
//copy items to clipboard and save in a variable #101; set $items, <clipboard>;Code: Select all
getitems $items;
Code: Select all
setkey <selitems>, sec, asd.ini;Code: Select all
getitems $items;
setkey $items, sec, asd.ini;A command would allow for specifying a separator in an argument:Muroph wrote:if it's meant only to assign a variable value, i think it'd be better if it was actually a new variable (like the <curitem> var.) instead of a command.admin wrote:when I'm back from the beach I will add a scripting command that will copy items directly into a variable, so you do not have to go the clipboard way:
Now:Then:Code: Select all
//copy items to clipboard and save in a variable #101; set $items, <clipboard>;Code: Select all
getitems $items;
this way you could use it directly.if it were a command you'd have to create a variable in order to use it.Code: Select all
setkey <selitems>, sec, asd.ini;Code: Select all
getitems $items; setkey $items, sec, asd.ini;
Code: Select all
//copy list of items to a variable
#101;
set $items, <clipboard>;
//save list path
set $list, <xypath>\teracopylist.tmp;
//delete old list
setkey avoid possible, error, message, $list;
delete 0,0, $list;
//save operation and list of items
setkey move, teracopyop, tc, $list;
setkey <crlf>$items, teracopylist, tc, $list;
status TeraCopy: Cut, , ready;Code: Select all
//copy list of items to a variable
#101;
set $items, <clipboard>;
//save list path
set $list, <xypath>\teracopylist.tmp;
//delete old list
setkey avoid possible, error, message, $list;
delete 0,0, $list;
//save operation and list of items
setkey copy, teracopyop, tc, $list;
setkey <crlf>$items, teracopylist, tc, $list;
status TeraCopy: Copy, , ready;Code: Select all
//save current path. this will be the target folder
set $path, <curpath>;
//restore operation type
getkey $op, teracopyop, tc, <xypath>\teracopylist.tmp;
//run teracopy.exe using command line parameters
//teracopy.exe [operation] *[list of source files] [target]
run ""%programfiles%\TeraCopy\teracopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\"";
status TeraCopy: Paste, , ready;Looks great. I guess it's time to install TeraCopy now...Muroph wrote:v4.1 is out!
in v4.0 i tried to get rid of the temp files by deleting them.
after running into a bunch of problems using the delete command (especially because of the time-based names of the temp files), the resulting scripts were awful, so i just had to rewrite them.
this time i tried a new approach.
just one file (with a constant name) to store both the operation and the list of items (they were in different files before).
the new scripts are MUCH better than the old ones.
Code: Select all
//copy list of items to a variable
#101;
set $items, <clipboard>;
//save list path
set $list, "<xypath>\teracopylist.tmp";
//delete old list
setkey avoid possible, error, message, $list;
delete 0,0, $list;
//save operation and list of items
setkey move, teracopyop, tc, $list;
setkey <crlf>$items, teracopylist, tc, $list;
status TeraCopy: Cut, 84C400, ready;Code: Select all
//copy list of items to a variable
#101;
set $items, <clipboard>;
//save list path
set $list, "<xypath>\teracopylist.tmp";
//delete old list
setkey avoid possible, error, message, $list;
delete 0,0, $list;
//save operation and list of items
setkey copy, teracopyop, tc, $list;
setkey <crlf>$items, teracopylist, tc, $list;
status TeraCopy: Copy, 84C400, ready;Code: Select all
//save current path. this will be the target folder
set $path, <curpath>;
//restore operation type
getkey $op, teracopyop, tc, "<xypath>\teracopylist.tmp";
//run teracopy.exe using command line parameters
//teracopy.exe [operation] *[list of source files] [target]
run """%programfiles%\TeraCopy\teracopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\""";
status TeraCopy: Paste, 84C400, ready;How do you achieve this first part (the XCV key shortcuts).Muroph wrote:Use them like the normal ctrl+x/ctrl+c/ctrl+v.
Before using them you'll have to create a folder to save a list of the items you want to copy.
I used 'scripts\teracopy' in xy folder.
Code: Select all
//copy list of items to a variable
getinfo $items, "SelectedItemsPathNames";
//save list path
set $list, "<xypath>\teracopylist.tmp";
//delete old list
setkey avoid possible, error, message, $list;
delete 0,0, $list;
//save operation and list of items
setkey move, teracopyop, tc, $list;
setkey <crlf>$items, teracopylist, tc, $list;
status TeraCopy: Cut, 84C400, ready;Code: Select all
//copy list of items to a variable
getinfo $items, "SelectedItemsPathNames";
//save list path
set $list, "<xypath>\teracopylist.tmp";
//delete old list
setkey avoid possible, error, message, $list;
delete 0,0, $list;
//save operation and list of items
setkey copy, teracopyop, tc, $list;
setkey <crlf>$items, teracopylist, tc, $list;
status TeraCopy: Copy, 84C400, ready;Code: Select all
//save current path. this will be the target folder
set $path, <curpath>;
//restore operation type
getkey $op, teracopyop, tc, "<xypath>\teracopylist.tmp";
//run teracopy.exe using command line parameters
//teracopy.exe [operation] *[list of source files] [target]
run """%programfiles%\TeraCopy\teracopy.exe" $op *"<xypath>\teracopylist.tmp" "$path\""";
status TeraCopy: Paste, 84C400, ready;Code: Select all
//copy list of items to a variable
getinfo $items, "SelectedItemsPathNames";
//save list path
set $list, "<xypath>\teracopylist.tmp";
//delete old list
setkey avoid possible, error, message, "$list";
delete 0,0, "$list";
//save operation and list of items
setkey move, teracopyop, tc, "$list";
setkey "<crlf>$items", teracopylist, tc, "$list";
status TeraCopy: Cut, 84C400, ready;Code: Select all
//copy list of items to a variable
getinfo $items, "SelectedItemsPathNames";
//save list path
set $list, "<xypath>\teracopylist.tmp";
//delete old list
setkey avoid possible, error, message, "$list";
delete 0,0, "$list";
//save operation and list of items
setkey copy, teracopyop, tc, "$list";
setkey "<crlf>$items", teracopylist, tc, "$list";
status TeraCopy: Copy, 84C400, ready;Code: Select all
//save current path. this will be the target folder
set $path, "<curpath>";
//restore operation type
getkey $op, teracopyop, tc, "<xypath>\teracopylist.tmp";
//run teracopy.exe using command line parameters
//teracopy.exe [operation] *[list of source files] [target]
run """%programfiles%\TeraCopy\teracopy.exe"" $op *""<xypath>\teracopylist.tmp"" ""$path\""";
status TeraCopy: Paste, 84C400, ready;