#1
|
|||
|
|||
Need advice with a simple WaitForStrings query
Good day.
This is supposed to be a simple little script but it's giving me a hard time. Code:
crt.Screen.Synchronous = True Sub Main Dim result crt.Screen.Send "grep ^Release /tspinst/scripts/aiParameter.sh|awk -F'=' '{print $2}'" & chr(13) result = crt.Screen.WaitForStrings("17.5","19.02", 4) MsgBox result If result = "17.5" Then crt.Dialog.MessageBox "Release 17" Else crt.Dialog.MessageBox "Release 19" End If End Sub On a R19.02 system the result is also "Release 19" and the 'MsgBox result' returns a "2". Please advise. Bjoern |
Thread Tools | |
Display Modes | Rate This Thread |
|
|