VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Character send delay does not work with crt.Screen.Send (https://forums.vandyke.com/showthread.php?t=12131)

eee 10-19-2015 02:23 AM

Character send delay does not work with crt.Screen.Send
 
Using CRT - Version 7.2.0 (x64 build 415) - Official Release - December 12, 2013

I have my terminal programmed to Character Send Delay of 50 mSec.
When typing, pasting and sending a string from a programmed key or a button, this works fine.
But when using crt.Screen.Send, the string is sent without the delay.
How can this be overcome?

e

rtb 10-19-2015 08:59 AM

Hi e,

This behavior was changed in SecureCRT 7.3.2. The solution in this case would be to upgrade.

You can download the current official release from the following location (which at this time is SecureCRT 7.3.5):
https://www.vandyke.com/download/sec.../download.html

eee 10-22-2015 01:32 AM

Found a work around.
If I program a key to "Send String", it will adhere to the send char delay.
The I run the key from within the script using Screen.SendKeys.
It is quite surprising you did not know about this.
All is missing is a way to program the string to the key from within the script, to get a generic Screen.Send look-alike.
What would be the correct GetOption - SetOption sequence to use one of the keys (lets say Ctrl-Alt-ShiftF12) for a Send that adheres to char delay?
When answering, assume there are other programmed keys. I am not sure you can SetOption to a single key, may have to program all of them.

rtb 10-22-2015 04:30 PM

Hi e,
Quote:

It is quite surprising you did not know about this.
I haven't spent any time trying to find workarounds to something that works as expected in a newer release. I am glad you found one that meets your needs.

If upgrading SecureCRT is not an option, you can automate the mapping of keys by passing an array of all of the keys that you want to map to the SetOption() method. You can find the format in the session .ini file. The option in the session .ini file is named:
Z:"Keymap v3"


All times are GMT -6. The time now is 11:15 AM.