EmEditor (text editor) Forum Index EmEditor Core Bug Reports
if (!confirm("Continue?")) Quit(); | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| 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:
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. |
| Yutaka | Posted on: 12/4/2012 7:13 am |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2397 |
Re: if (!confirm("Continue?")) Quit(); Hi LTT,
I am not sure your test environment. Is the "Enable Tabs" set? If you are using the Tabs, you won't be able to close a new tab that is created during the macro because the "Confirm" dialog box is the foreground window. If the Enable Tabs is not set, you can close a new created window during the macro, but the macro will continue as expected. Please explain the detail procedure to reproduce the issue. Thank you,
|
| LTT | Posted on: 12/5/2012 12:41 am |
Just can't stay away ![]() ![]() Joined: 10/11/2006 From: Posts: 84 |
Re: if (!confirm("Continue?")) Quit(); Sorry, I found the reason:
I have an event-driven macro that runs at [Group Window Closed] etc. So this problem was because another macro ran during the macro running. (This is a limitation?) |
| LTT | Posted on: 12/5/2012 1:30 am |
Just can't stay away ![]() ![]() Joined: 10/11/2006 From: Posts: 84 |
Re: if (!confirm("Continue?")) Quit(); To all,
You might have problems caused by your event-driven macros. Try and see if you need this macro: http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=2139&forum=19 |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




