Last selected file
Posted: 02 May 2011 21:46
Is it possible to get the previous selected file from a script? (similar to compare previous file) I have checked the help, but I haven't found it.
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Code: Select all
"Restore just last Selection"
#257; //Edit > Select > Restore SelectionCode: Select all
"Store Selection temporary to file"
$toredSelection = get("selecteditemsnames", "|"); //store
writefile("%temp%\XYStoredSelection.ini", $toredSelection);
"Restore temporary stored Selection"
$toredSelection = readfile("%temp%\XYStoredSelection.ini");
selectitems $toredSelection; //restoreCode: Select all
"Copy selected names to clipboard"
focus; #102; //File > To Clipboard > Item Name(s)
"Select items from Clipboard"
selectitems "<clipboard>",,,a; Good idea. I added a new variable <curitemprev>.LittleBiG wrote:Is it possible to get the previous selected file from a script? (similar to compare previous file) I have checked the help, but I haven't found it.