View Single Post
  #3  
Old 10-11-2016, 05:31 PM
jakjok jakjok is offline
Registered User
 
Join Date: Sep 2016
Posts: 3
yup, python is more easy for me

also, i'm facing another issue now, and need your advice:


Quote:
outPut = crt.Screen.WaitForStrings ([ "error", ">", "#"], 1000)
index = crt.Screen.MatchIndex
crt.Screen.Send("!" + str(index) + "\r")

if (index == 2):
crt.Screen.Send("!" + str(index) + "\r")
crt.Screen.Send("en" + "\r")
pass

the index value should be 2 when we are on prompt mode while it shows me 3

Quote:
SW2>
SW2>
SW2>!3
SW2>
SW2>
if i removed "#" from the list it works fine , can you help me on this as well
Reply With Quote