Hi Manfred,
Your suggestion has been implemented. New key word $CONNECTION$ was added to LogMeTT. The latest revision of LogMeTT can be downloaded from here:
http://logmett.com/freeware/LogMeTT/L ... 02Beta.zipHere are 2 examples of how to use new key word inside macros:
Quote:
connect '$CONNECTION$:23 /nossh'
settitle 'Connecting $connection$'
Just to remind everyone what are the key words and how do they work in LogMeTT here is the description.
I introduced several key words in LogMeIn and they later "migrated" into LogMeTT. They can be used in TeraTerm macro scripts executed from LogMeTT. Right before macro runs these words are replaced with corresponding macro commands or certain string values. Every key word is surrounded by dollar signes
$. Certain key words are case sensitive, others are not.
LogMeTT Ver.2.02-beta supports the following key words:$CONNECTION$ - is replaced by the first word from connecion name. Can be entered in either case.
$NAME$ - is replaced by the Name string from Settings tab of LogMeTT Configuration window. Can be entered in either case.
$EMAIL$ - is replaced by the E-mail string from Settings tab of LogMeTT Configuration window. Can be entered in either case.
$PHONE$ - is replaced by the Phone string from Settings tab of LogMeTT Configuration window. Can be entered in either case.
$USER$ - is replaced by the name of the user currently logged into Windows. The name will be converted to uppercase. This key word is case sensitive.
$user$ - is replaced by the name of the user currently logged into Windows. The name will be converted to lowercase. This key word is case sensitive.
$User$ - is replaced by the name of the user currently logged into Windows. The name will retain it's original case. This key word is case sensitive.
$LOGIT$ - is replaced by sequence of TeraTerm macro commands that will open log file with the name containing selected connection name, date and time when macro was started. Check the post
http://logmett.com/forum/viewtopic.php?t=21 to learn how this is done in TeraTerm macro language. Nevertheless this key word is still supported in LogMeTT, it is easier to select checkbox 'Start logging when connection established' instead. This checkbox is located in LogMeTT Configuration window under Macro tab. Key word $LOGIT$ has to start from the very begining of the line and be the only word on that line. It does not matter where the line containing $LOGIT$ is located inside the macro code. Logging always starts right before macro exits. This key word can be entered in either case.
If macro is being exported into TTL file via 'Macro' -> 'Export macro to file' menu, all key words will be replaced with their actual values and will not appear in TTL file.