View Single Post
  #1  
Old 05-02-2019, 08:10 AM
Ginfizz Ginfizz is offline
Registered User
 
Join Date: Feb 2019
Posts: 5
WaitForStrings TypeError in Python

This is occurring in Python. When trying to use WaitForStrings I keep receiving a TypeError which reads as follows:
Error: an integer is required
Line 6
My code is as follows:

result = int(crt.Screen.WaitForStrings(">","#"))
crt.Screen.Send(str(result))

the first line is line 6, the offending line. The error persists if I add a timeout value as well.

Does anyone know why this is happening?
Reply With Quote