Enable Macros In Tera Term

  

Active6 years, 5 months ago
  1. Teraterm Macro Tutorial
  2. Enable Macros In Tera Term Meaning
  3. Enable Macros In Tera Term Download

A macro is a series of commands that you can use to automate a repeated task, and can be run when you have to perform the task. This article has information about the risks involved when you work with macros, and you can learn about how to enable or disable macros in the Trust Center. Tera Term Macro files have an extension.TTL. When in install Tera Term, the.TTL extension will be associated with Tera Term, so anytime you click on a.TTL file, the Tera Term maco processor should run it. If it does not, you can manually associate the “TLL” file as described below. Therefore, today we will talk about how to enable/disable macros in your Excel. Macro is very effective in dealing with complex tasks. However, there will also be dangers in some macro-enabled workbooks. If you run those macros unintentionally, your Excel could be damaged. Hence, correctly enabling/disabling macros macro is rather important.

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.

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:

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

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.

Term

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.

I think that answers my own immediate question as well as provide some reference for others...

Thanks

gradytraingradytrain

Not the answer you're looking for? Browse other questions tagged scriptingmacros or ask your own question.

Active2 months ago
Enable

How do I make Tera Term toggle DTR and RTS, or execute any of its custom commands in the Tera Term language (TTL)?

I have an electronics project that uses an FTDI chip as the serial interface between PC and the electronics board. I need to communicate to the FTDI chip to toggle the DTR and RTS pins, which are set to control various system states.

Bob Gilmore
6,98610 gold badges43 silver badges48 bronze badges

Teraterm Macro Tutorial

user3897976user3897976

1 Answer

Tera Term has an entire scripting language called Tera Term Language (TTL). You can find all the commands on their website. The question is how do you execute a command?

Tera Term will execute commands from a TTL file. Create a text file with your one command, or any number of commands, and save the file with a .TTL extension.

In Tera Term click the 'Control' menu, then select 'Macro'. This will allow you to navigate to your TTL file.

There are example TTL files in the Tera Term installation directory.

Also, a side detail I didn't see explained anywhere else: it is perfectly ok to change any of the serial port settings, without needing to disconnect and reconnect. You will need to rerun your macros, however. In my case, if I changed from 9600 baud to 115,200 baud, I would need to rerun my script to enable DTR and RTS.

Enable Macros In Tera Term Meaning

My TTL file looks like this:

user3897976user3897976

Enable Macros In Tera Term Download

Not the answer you're looking for? Browse other questions tagged serial-portteraterm or ask your own question.