Disable error box with "Stop Macro" and "Cont
Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Disable error box with "Stop Macro" and "Cont
PostPosted: Tue Dec 12, 2006 9:53 am 
Offline
Newbie

Joined: Tue Dec 12, 2006 7:18 am
Posts: 3
I am using a TeraTerm macro to stress test a telnet application that fails to connect on a regular basis. When that happens, the macro displays a message box with "Stop Macro" and "Continue" options. I would like to disable that functionality in some manner, so that the test can continue to run unattended. Any ideas?

If it matters, most of the time (if not always) it is the infamous "Link macro first." message.

Thanks,
Steve


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 13, 2006 10:45 am 
Offline
Guru

Joined: Wed Jan 25, 2006 7:28 pm
Posts: 532
Location: Denver, Colorado, USA
Do a testlink command before whatever command is causing that error. For example, instead of just:

sendln 'whatever'

Do this instead:
testlink
if result=2 sendln 'whatever'


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 5:52 am 
Offline
Newbie

Joined: Tue Dec 12, 2006 7:18 am
Posts: 3
Yeah, I put a bunch of testlink's in...

Unfortunately, there is always a timing issue when you are running thousands of tests where the connection goes away just after the testlink, and the next command still fails. In my ideal world, there would be an undocumented system variable that defaults the answer to the message box to either "Stop Macro" or "Continue" without displaying the message box -- or the equivalent thereof...

Thanks,
Steve


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 15, 2006 9:29 am 
Offline
Guru

Joined: Wed Jan 25, 2006 7:28 pm
Posts: 532
Location: Denver, Colorado, USA
Well, its a bit of a kludge, but you could use AutoIT to automatically complete that box every time it comes up. AutoIT is free windows automation software available at 'http://www.autoitscript.com/autoit3/'.

For example, use AutoIT with the following code, which will run forever independantly of TeraTERM until you exit it using the task panel icon:

While (1)
  While WinExists('MACRO: Error')
      ControlClick('MACRO: Error', '', 'Button2')
  Wend
  Sleep(500)
Wend


This will automatically click on continue whenever a macro error window exists. This should allow any number of TeraTERM scripts to run simultaneously unattended.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 8:06 am 
Offline
Newbie

Joined: Tue Dec 12, 2006 7:18 am
Posts: 3
Thanks. A kludge, yes, but a workable one...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot 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 © 2000, 2002, 2005, 2007 phpBB Group