AutoHotkey Community

It is currently May 27th, 2012, 12:25 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: December 9th, 2009, 7:41 pm 
Offline

Joined: December 2nd, 2009, 4:41 pm
Posts: 6
Have read various sections in help/faq, but still can't get logic to recognise when to stop due to an error detected at a lower level of program. Will try and explain:

Have a script that uses RunWait to launch several other scripts in sequence. Using ErrorLevel, can detect if launch of script has failed and put out message and then abort processing. But if launch is succesful, the launched script can then call various functions and within several of these I can detect an error condition and put out a suitable message and use ExitApp to kill the launched script, but can't find a way of then telling the script containing the next lauch process to also stop....

Any guidance appreciated. Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 9th, 2009, 8:18 pm 
u can put those series of instructions into a settimer label
when u want to terminate that function immediately, just use settimer off


Report this post
Top
  
Reply with quote  
PostPosted: December 9th, 2009, 8:54 pm 
Offline

Joined: August 13th, 2006, 6:45 am
Posts: 355
Location: Germany
Use ExitApp with ExitCode, you will find the given ExitCode as ErrorLevel in your calling script


or connect them via

Terminal Script for communication between scripts
http://www.autohotkey.com/forum/topic4972.html

Hubert


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2009, 1:28 pm 
Offline

Joined: December 2nd, 2009, 4:41 pm
Posts: 6
Thanks: A combination of Exit/ExitApp/ErrorCode and ErrorLevel has solved all the communication problems.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Google [Bot], Google Feedfetcher, iDrug, Leef_me, rjgatito and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group