View Single Post
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 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:

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

import datetime
g_strDateTimeTag ="%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)

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote