wait for string
Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: wait for string
PostPosted: Thu Sep 10, 2009 12:29 am 
Offline
Newbie

Joined: Thu Sep 10, 2009 12:16 am
Posts: 1
Hi,
i have an issue with the following code

  1. for i 1 6
  2. send '_012_111'
  3. wait 'XXA'
  4. if result = 1 goto Successful
  5.  
  6. sendln '_012_113'
  7. next
  8.  
  9. :Successful
  10. messagebox "Settings successfully switched to XXA" "Info"
  11. end
  12.  


The issue is that i want to loop throug settings and when 'XXA' is choosen then i want to exit else change the value to the next but
in my settings there is also a value called 'WXXA' now the loop is always successful if this value selected and not till value 'XXA' selected!

Has anyone a suggestion??

Thanks


Top
 Profile E-mail  
 
 Post subject: Re: wait for string
PostPosted: Thu Sep 10, 2009 6:08 am 
Offline
Guru

Joined: Wed Jan 25, 2006 7:28 pm
Posts: 532
Location: Denver, Colorado, USA
You could try

wait 'WXXA' 'XXA'

instead of your single wait, then check for result=2 instead of 1.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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