The one way you can deal with this issue is launch another instance of XYplorer using:
Code: Select all
Run """<xypath>\<xyexe>"" /ini=""<xyini>"" /win=min /script=""Script""";Code: Select all
Exit "n";One issue is that variables do not carry over even if you have "Remember permanent variables" on because you must save your current session before it is registered in the new instance. If somehow you need to save variables in your pre-run program, you can bypass by using something like:
Code: Select all
WriteFile("<xyscripts>Variable.txt","$Variable",,t);Code: Select all
$Variable = ReadFile("<xyscripts>\Variable.txt",t);So in the case of the Youtube scrip, the pre-run script would launch a new instance of XYplorer that run the main script, download the Youtube video, and then quit once it finish downloading. That new instance is already minimize so you can do whatever you were doing before with XYplorer or the desktop.
The whole working method is found here in my new script:
http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=9472
The pre-run program is LongPathFinder.xys which opens a new instance of XYplorer and run the main program which is LongPathRun.xys.
Have fun!
XYplorer Beta Club