I created a new folder under my xyplorer installation and I am pasting the screenshot into this folder so I can use it in my UDC.
I had to set 'selpos 2' because I am modifying this to copy the current screenshot to an archive folder below the current folder. If you do not have any subfolders it should be selpos 1.
Code: Select all
"Screenshot"
// Get current location
set $path, <curpath>;
// Go to temporary folder
goto "C:\Program Files\XYplorer\appdata\TempImages\";
// Select all files
#255;
// Delete the last screenshot(s)
#169;
// paste the clipboard to temporary folder
#206;
// sort list by modified date descending just in case
sortby mod, d;
// select the second item because of a folder taking pos 1
selpos 2;
// make sure List has focus
focus l;
// copy file path to clipboard
#101;
// go back to that original location
goto $path;
// load path to mspaint using pre-defined UDC
// "c:\windows\system32\mspaint.exe" "<clipboard>"
#1405;
XYplorer Beta Club