Thanks all for your help !
Unfortunately, none works for me...
Let me explain a little bit more.
Code: Select all
End GetInfo("CountSelected") < 1, "No item(s) selected.";
Global $files;
$files = Report("{Dir |{FullName};{Ext}<crlf>|}", 1);
Setting "AllowRecursion", 1;
Sub "_newTXT";
$files = RegexReplace($files, "^(.*);.*<crlf>", "$1|");
Delete 1,0,$files;
"_newTXT"
Global $files, $i;
$i = $i Like "" ? 1 : $i;
$token = GetToken($files, $i, "<crlf>");
End $token Like "",, 1;
$file = GetToken($token, 1, ";");
$ext = GetToken($token, 2, ";");
$newFile = RegexReplace($file, "$ext$", "txt");
New $newFile;
$i = $i + 1;
Sub "_newTXT";
moveto "F:\Dummy Files", $newFile;
This script (thanks to the forum helpers!)0, applied to a file, create a new file with same name with new .txt extension, move it to the Dummy folder then delete the original file.
But at the end of the script, the "selection" is at the bottom of the list (file are sorted by created date) and I always have to push the HOME key to go back to where I was (at the top of the list/window). So I would like to do this automatically...
BTW there is an active Visual filter which show only music files. And with the #348; command, the list is at the top of the list BUT Visual filter is cancelled and date sorting also (now the list is sorted alphabetically) and more columns are created (ATTR/LEN/TAGS/COMMENTS etc)...
EDIT: with "sendkeys "{HOME}";" (HOME is now Uppercase), I get the same result as the #348; command
That's strange because if I press the Home key I should get the same result as the sendkeys "{HOME}"; ????
I hope it's more clear to understand my problem and sorry for my bad english