View Single Post
  #2  
Old 05-15-2019, 08:56 AM
jpellegrini jpellegrini is offline
Registered User
 
Join Date: Mar 2019
Posts: 20
Hi somenasty,

You mention that the loop is failing to execute.

What exactly is it failing at doing?

Does it give you any error message or any information?

I notice some indentation issues in your script. In Python, white space is important because it is used as the delimiter between scopes (ie: what is in the function main() as a whole vs. what is in the while loop). Therefore, the while loop may execute better if you do the following:

Code:
while count<5 :
		crt.Screen.WaitForString("Console>")
		crt.Screen.Send("sta\r")
		count = count + 1
__________________
Thanks,
--Jon

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote