Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-11-2017, 02:19 PM
Ronnie427 Ronnie427 is offline
Registered User
 
Join Date: May 2017
Location: Houston, TX
Posts: 7
Output very slow when crt.Screen.Synchronous = True

I'm getting very slow output, less than 1 cps, when sync = true, complete output displays once disconnect dialog box appears.

I'm logging to file, Version 8.1.2 (x64 build 1362). os windows 8.1 pro.

Speed of display is fine if sync=false.

My test script_sleep.vbs to a ssh host:
#$language = "VBScript"
#$interface = "1.0"

Sub Main
crt.Screen.Synchronous = True
crt.Screen.Send "show clock" & vbCR
crt.Screen.WaitForString strPrompt
crt.Sleep (10000)
crt.Screen.Send "show clock" & vbCR
crt.Screen.WaitForString strPrompt
crt.Sleep (10000)
crt.Screen.Send "show clock" & vbCR
crt.Screen.WaitForString strPrompt
crt.Sleep (10000)
crt.Screen.Send "show clock" & vbCR
crt.Screen.WaitForString strPrompt
crt.Sleep (10000)
crt.Screen.Send "show clock" & vbCR
crt.Screen.WaitForString strPrompt
crt.Sleep (10000)
crt.Screen.Send "show clock" & vbCR
crt.Screen.WaitForString strPrompt
crt.Sleep (10000)
crt.Quit

End Sub
Reply With Quote
  #2  
Old 05-11-2017, 03:30 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,937
Hi Ronnie427,

I could replicate your results with sync = true, but it was the send (input) that was slow, being drawn a character at a time. Until I defined strPrompt and then all processed at a normal speed (with expected delay of 10 seconds between calls).

Have you defined strPrompt?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 05-12-2017, 09:27 AM
Ronnie427 Ronnie427 is offline
Registered User
 
Join Date: May 2017
Location: Houston, TX
Posts: 7
Smile

Thanks


I couldn't see the trees in the forest.
Reply With Quote
Reply

Tags
script sleep synchronous


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 07:27 AM.