Active6 years, 6 months ago
I am using a Tera Term over a serial port to do some testing on a board. Recently I found out I can do some scripting in Tera Term so I have been doing research to help automate and make testing a little easier.
String operation commands. Code2str; expandenv (version 4.71 or later) int2str; regexoption (version 4.78 or later) sprintf (version 4.52 or later) sprintf2 (version 4.62 or later) str2code; str2int; strcompare; strconcat; strcopy; strinsert (version 4.67 or later) strjoin (version 4.67 or later) strlen; strmatch (version 4.59 or later). To concatenate multiple strings into a single string in Microsoft Excel, you can use the & operator to separate the string values. The & operator can be used as a worksheet function (WS) and a VBA function (VBA) in Excel. As a worksheet function, the & operator can be entered as part of a formula in a cell of a worksheet. That is AutoIt code and this is a forum which helps you code in the AutoIt language - which is what I assumed you wanted to do. Now I have googled around a bit, it seems you are using Tera Term 's own macro languge - so I suggest you post on a Tera Term forum.
I know Tera Term has a site that lists example macros as well as a command list but I guess what I need is someone with experience scripting in Tera Term.
Tera Term uses a sort of Basic language called Tera Term Language (TTL) but I found it hard from the site to actually identify which commands I needed to use.
Tera term site: http://ttssh2.sourceforge.jp/ < -- Note: Site is in Japanese but I always have it auto translated..
I am trying to develop a script to play a set of tracks using a 'play x' command, where x is the track index. Ideally the track will play for ~3 seconds and then increment up to the next track. I have a very crude outline algorithm that I should describe it.
Algorithm:
Top 4 Download periodically updates software information of microstation full versions from the publishers,but some information may be slightly out-of-date.Using warez version, crack, warez passwords, patches, serial numbers, registration codes, key generator, pirate key, keymaker or keygen formicrostation license key is illegal. Microstation free trial download.
If anyone has any insights or experience with Tera term I would be very appreciative.
If anything right now I need to figure out how to take an inputbox input and store it to a variable. I can probably figure out the rest..
Thanks
gradytrain
gradytraingradytrain
1 Answer
OK, I did some digging and found a moderately active forum: http://logmett.com/forum/
It is there that I found a nice thread called: TeraTerm Macro Language for dummies..http://logmett.com/forum/viewtopic.php?f=3&t=2133
![Term Term](/uploads/1/2/5/0/125064605/425140107.png)
That, and the command list on the actual TeraTerm project site is where I have been troubleshooting and solving 90% of my issues.
To take in a user defined input you use the 'inputbox' command, which follows the format:
inputbox 'message' 'title' [default]
(not entirely sure what default is supposed to be doing)
E.G.
inputbox 'Please type input' 'Input'
a dialog box will appear and prompt a response. This input is sent to a default variable inputstr
I have gotten this variable to work in some cases but I think the problem is that the variable is technically a string type so I can't do traditional loops. I need to figure out a way to use the str2int command to do an expression.
Excel Concatenate Macro
I think that answers my own immediate question as well as provide some reference for others..
![Macro Macro](/uploads/1/2/5/0/125064605/928817956.jpg)
Thanks
gradytraingradytrain