EmEditor (text editor) Forum Index
   EmEditor Core Bug Reports
     if (!confirm("Continue?")) Quit();
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
LTT
Posted on: 12/3/2012 11:03 pm
Just can't stay away
Joined: 10/11/2006
From:
Posts: 84
if (!confirm("Continue?")) Quit();
This is a simplified test macro, for reproducing a problem I encountered:

WshShell = new ActiveXObject("WScript.Shell");

var app = editor.FullName;

for (var ii=0; ii<5; ii++)
{
	if (!confirm("Continue?")) Quit();
	WshShell.Run ("\"" + app + "\"");
}


If as expected, every time before a new EmEditor window is launched, there should be a confirmation prompt.
But, if I close one of the EmEditor windows launched by this macro, and then confirm the prompt, the For loop will go on running to its end without any pause, all the rest of the EmEditor windows will be launched with no confirmation prompt.

There's no such a problem if EmEditor is running more than one process, or if WshShell.Popup is used instead of the Confirm method.
Flat Previous Topic | Next Topic


Subject Poster Date
 » if (!confirm("Continue?")) Quit(); LTT 12/3/2012 11:03 pm
     Re: if (!confirm("Continue?")) Quit(); Yutaka 12/4/2012 7:13 am
       Re: if (!confirm("Continue?")) Quit(); LTT 12/5/2012 12:41 am
         Re: if (!confirm("Continue?")) Quit(); LTT 12/5/2012 1:30 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文