View Single Post
  #2  
Old 06-19-2018, 09:13 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,015
Hi winniec,

One thing that jumps out at me immediately is that I don't see where you have ever set Synchronous to True:
tab.Screen.Synchronous = True
Even though it's a VBScript manual, Scripting Essentials explains in chapter 4 why this is so vital to be sure you don't miss data (section with Avoid "Missing" Data with Screen.Synchronous = True as the title).

Also, a minor thing, in one spot you are using \n with the Send() instead of \r:
Code:
        ###Send the commands to the tab
            for command in COMMANDS:
                try:
                    tab.Screen.Send(command+"\n")
What your script does is very close to one of our example scripts in the forums here so you might look it over for further tips/clues.
__________________
Thanks,
--Brenda

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