View Single Post
  #3  
Old 01-09-2019, 02:43 PM
berdmann berdmann is offline
VanDyke Technical Support
 
Join Date: Aug 2017
Posts: 441
Hi ZekeB,

There aren't any substitutions for date/time available in SecureCRT for plain mapped keys SEND STRING operations.

I have added a feature request on your behalf to add this functionality in SecureCRT.

If this functionality becomes available in a future version, we will be sure to let you know. If you would like to be notified directly please send an email to Support@VanDyke.com with "Feature Request Forum Post 13352" in the subject line.

In the mean time, you can get the behavior you desire by mapping your key combo to run a script instead of using the SEND_STRING function. For example:

Code:
# $language = "Python"
# $interface = "1.0"

import datetime
g_strDateTimeTag = datetime.datetime.now().strftime("%H:%M:%S")

strLeaderDash = "-" * 30
crt.Screen.Send("\r\n\r\n\r\n{0}{1}{2}{3}{4}\r\n\r\n\r\n".format(strLeaderDash, "{", g_strDateTimeTag, "}", strLeaderDash), True)
__________________
Thanks,
--Brittney

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