VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Output very slow when crt.Screen.Synchronous = True (https://forums.vandyke.com/showthread.php?t=12691)

Ronnie427 05-11-2017 03:19 PM

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

bgagnon 05-11-2017 04:30 PM

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?

Ronnie427 05-12-2017 10:27 AM

Thanks


I couldn't see the trees in the forest.


All times are GMT -6. The time now is 09:30 PM.