View Single Post
  #6  
Old 03-25-2020, 07:18 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,316
Hi aqelmo,

How do you know what that first send is going to be?

Is it always amos 0001, amos 0002, amos 0003?

If not, where do you get the data from? How do you know what node(s) you will connect to?

Because even in a script, you have to know how to determine what to send, if that makes sense.

If just the three …
Code:
For i = 1 to 3
    crt.Screen.WaitForString chr(126) & "]$ "
    crt.Screen.Send "amos 000" & i & chr(13)
    crt.Screen.WaitForString "[0m> "
    crt.Screen.Send "al" & chr(13)
    crt.Screen.WaitForString "[0m> "
    crt.Screen.Send "q" & chr(13)
Next
__________________
Thanks,
--Brenda

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

Last edited by bgagnon; 03-25-2020 at 07:19 AM. Reason: Put WFS in loop
Reply With Quote