View Single Post
  #4  
Old 07-27-2018, 08:36 AM
ekoranyi ekoranyi is offline
VanDyke Technical Support
 
Join Date: Jan 2017
Posts: 654
Hang,

One change that comes to mind would be add an If statement that only allows the try block to run if you are currently connected. this would look something like the below code.

Code:
if objTab.Session.Connected:
    try:
        objScreen.Send("hello world\r")
        objScreen.Send("hello world\r")
        objScreen.Send("alive\r")
        objScreen.WaitForString("alive")
    except:
        pass
Does making this change impact the behavior you see?
__________________
Thanks,
--Eric

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