I used
Code: Select all
rename b, '*-new-name-<date yyyy-mm-dd>', ,,8; Code: Select all
rename b, 'new-name-<date yyyy-mm-dd>', ,,8; Code: Select all
rename b, '*-new-name-<date yyyy-mm-dd>', ,,8; Code: Select all
rename b, 'new-name-<date yyyy-mm-dd>', ,,8; OK, it works when I launch it directly but no more in a script launched by button - different entries (the other entries are working).highend wrote:Works fine for me in current beta and v17 official...
Code: Select all
"aller green"
focus "P1";
goto "E:\img-range\decale\2006-2008?lbl:green";
$file = gettoken("<allitems |>", -1, "|");
goto "E:\img-range\decale\2006-2008";
selectitems "<curpath>\$file",, 1;//will select and focus somefile
"------------"
"Renommer xz"
$name = input("Modifier le nom", "Nom", , [style=s], [cancel], [width=600], [height=400]); copytext "$name"; renameitem( "mm-<date yyyy-mm-dd>-<clipboard>", , ,);
"------------"
"Rajouter date"
rename b, '*-<date yyyy-mm-dd>', ,,8 ;
"Vince"
rename b, 'vince-<date yyyy-mm-dd>', ,,8;
"Smilby"
rename b, 'smilby-<date yyyy-mm-dd>', ,,8;
"Dink Siegel"
rename b, 'siegel-<date yyyy-mm-dd>', ,,8;
"Wilson"
rename b, 'wilson-<date yyyy-mm-dd>', ,,8;
"Buck Brown"
rename b, 'buck-brown-<date yyyy-mm-dd>', ,,8;
"Otto Schmidt"
rename b, 'otto-schmidt-<date yyyy-mm-dd>', ,,8;
"Dempsey"
rename b, 'dempsey-<date yyyy-mm-dd>', ,,8;
"Sokol"
rename b, 'sokol-<date yyyy-mm-dd>', ,,8;
"feroumont-ero"
rename b, '*-feroumont-ero-<date yyyy-mm-dd>', ,,8;
"--------------"
"Recherche derniers secret"
goto "E:\img-range\images-perso-xz\faits?*2015-01*";
wait 300;
button "viewthumbs";
"Recherche derniers normal"
goto "E:\img-range\images-perso-xz\faits?*2012-07*";
wait 500;
button "viewthumbs";
"-------------"
"Creer alternative-xy"
openwith "C:\Program Files\XnViewMP\xnviewmp.exe";
wait 700;
run "E:\Lian\vrac\scriptsautoit\retaille-xnview-4-5.exe";