Hello,
How do i get my script to terminate if i close the dialog?
Ben
If i close down my dialog, my script still runs.
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Closing a dialog returns a value of 2 (to Show or GetDialogAction). So simply check the return value and if it is 2 jump to the end of the script:
Show>dialog,r
If>r=2,end_script
..
..
..
..
..
Label>end_script
Show>dialog,r
If>r=2,end_script
..
..
..
..
..
Label>end_script
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?