Code: Select all
$file = inputselect("Select a Recent File to be Opened", formatlist(listfolder(%user%\recent), s, "|"), , 1, , 800, 400, "Recents");
$dot = substr("$file", -8, 1);
IF ($dot == ".") { open $file; }
//try to test SIZE either - IF == 0, OPEN
ELSEIF ($dot != ".") { #340; goto $file; #1046; //340 new tab, 1046 go to focused .lnk target file
$cnt = getinfo("CountSelected");
IF ($cnt == 1) { open <curitem>; #351; } //351 - close current tab
ELSEIF ($cnt != 1) { }
}
status "ok!";
XYplorer Beta Club