xing out but script still running

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Mark Gevry
Pro Scripter
Posts: 63
Joined: Sat Dec 25, 2004 3:23 pm

xing out but script still running

Post by Mark Gevry » Fri Aug 05, 2005 4:47 pm

Most of the time when i click the X button of my dialog...the dialog goes away, but the script is still running! And i dont want to just push shift esc when releasing a little product, id rather it be more professional. Am i suppose to add something into the script?

Mark Gevry

User avatar
JRL
Automation Wizard
Posts: 3501
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Aug 05, 2005 4:52 pm

Picking the "X" sets the dialog result to 2. Therefore, add a line:

If>result=2,exit

Where "exit" is a label at the end of the script.

Hope this makes sense and is helpful,'
Dick

Mark Gevry
Pro Scripter
Posts: 63
Joined: Sat Dec 25, 2004 3:23 pm

Post by Mark Gevry » Fri Aug 05, 2005 5:11 pm

Thank you!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts