View Single Post
  #4  
Old 10-01-2015, 03:02 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,635
Hi benitocamela,

Todd (rtb) is not available.

Your WaitForString() call will never return if "busy" is not found, because you are not providing a timeout.

You will want to add a timeout parameter that will cause WaitForString() to exit if it does not find "busy" in 5 or 10 seconds.

For example:

Code:
nTimeout = 5
Do While crt.Screen.WaitForString ("busy" & VbCr, nTimeout) 
    crt.sleep 20000 
    crt.Screen.Send "CHECK-STATUS-COMMAND" & VbCr
Loop
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by bgagnon; 10-05-2015 at 07:08 AM. Reason: Name was incorrect
Reply With Quote