use of variables
Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: use of variables
PostPosted: Sun Feb 20, 2005 12:42 pm 
Offline
Newbie

Joined: Sun Feb 20, 2005 12:36 pm
Posts: 1
Hi Boris,

Is there any way to use the name of the connection as a variable in the macro? I'd like to copy the macro I have to a lot of other connections, which would be much easier if I just need to copy it and change the name.

For the rest the program sofar seems to work just fine! Great job!

cheers, manfred


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 20, 2005 2:19 pm 
Offline
Moderator, LogMeTT developer
User avatar

Joined: Sat Jan 08, 2005 7:52 am
Posts: 1143
Location: Seattle, WA, USA
Hi Manfred,

First of all I moved your posting from Bugs section into Suggestions.

The feature you are asking for does not exist, however it is very easy to implement. Please visit Announcements forum in couple of hours from the time I am typing this answer and you will be able to download new version of LogMeTT with implementation of your proposal.

Nice to hear that you did not catch bugs so far. :D

_________________
Thanks.
Best regards,
// Boris


Top
 Profile E-mail  
 
 Post subject:
PostPosted: Sun Feb 20, 2005 5:17 pm 
Offline
Moderator, LogMeTT developer
User avatar

Joined: Sat Jan 08, 2005 7:52 am
Posts: 1143
Location: Seattle, WA, USA
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.zip

Here 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.

_________________
Thanks.
Best regards,
// Boris


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group