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 10-19-2015, 02:23 AM
eee eee is offline
Registered User
 
Join Date: Aug 2013
Posts: 4
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
Reply With Quote
  #2  
Old 10-19-2015, 08:59 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
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
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 10-22-2015, 01:32 AM
eee eee is offline
Registered User
 
Join Date: Aug 2013
Posts: 4
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.
Reply With Quote
  #4  
Old 10-22-2015, 04:30 PM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
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"
__________________
--Todd

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


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 09:36 PM.