Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Tags
python , typeerror , waitforstrings


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 08:43 PM.