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