Page 1 of 1

help with "cancel"

Posted: 10 May 2012 15:00
by calude
hi
the joined catalog script closes all windows then opens a set of preset tabs for me.
a warning pop up tells me "close all other tabs (including locked and home tabs) and loose all their settings"
OK or Cancel
I click OK and XYplorer does its script magic
so far so good, works as intended
but
if I want to Cancel the operation at the pop up, XYplorer still executes its script.
what should I add to the script so it really aborts the operation?

thanks

Calude

Code: Select all

#353; //#353	View | Tab | Close All Other Tabs...
 #329; //#329	View | Sort By | Path
 goto "D:\CV_mes_documents\a\folderA\";
 #340; //#340	View | Tab | New Tab
 goto "D:\CV_mes_documents\a\folderB\";
 #340; //#340	View | Tab | New Tab
 goto "D:\CV_mes_documents\a\folderC\";
 #340; //#340	View | Tab | New Tab
 goto "D:\CV_mes_documents\a\folderD\";
 #340; //#340	View | Tab | New Tab
 goto "D:\CV_mes_documents\a\folderE\";
 #340; //#340	View | Tab | New Tab
 goto "D:\CV_mes_documents\a\folderF\";

Re: help with "cancel"

Posted: 10 May 2012 16:47
by Stefan
From where did this warning comes from?
From one of the used commands? (Command numbers #123 without an added //comment are not easy to understood :( )

Re: help with "cancel"

Posted: 10 May 2012 18:20
by highend
delete your #353; and replace it with a confirm() command and use it's return value (0|1)
for an if(){} block and finally a tab("closeothers") in it.