View Single Post
  #3  
Old 05-13-2021, 01:21 PM
BjoernH BjoernH is offline
Registered User
 
Join Date: Mar 2018
Posts: 53
Thanks for the explanation Jake!

Changed my script to:

Code:
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 = 1 Then 
		crt.Dialog.MessageBox "Release 17"
	Else
		crt.Dialog.MessageBox "Release 19"
	End If
End Sub
Works as expected now.

Regards,
Bjoern
Reply With Quote