Tera Term Macro Concatenate String

  

Tera Term Scripting, need help developing a macro. 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.

Active5 years, 1 month ago
Tera Term Macro Concatenate String

I'm writing a Tera Term macro and I need to assign a string variable that contains ' and '. I've looked around on various tutorials but couldn't find mention of how to do this, so hopefully it exists.

Download All Files is a free app which can be downloaded from the Android Marketplace easily on to your mobile phone. You just need to launch Market from your mobile phone, search out for Download All Files and click on install. It will install within no time as the file size is just 181 kb. Free mp3 for android phone. Note: In my research part, I have gone through many articles which are already written on title “best free apps to download music for android phone”.I installed those apps on my phone one by one and found that most of them were not offering download option, but they were listed in the article to increase the article length only. May 31, 2013  That is why it is always an advantage to download free MP3 to mobile phone. Know something before you download free MP3 to mobile phone. There are three kinds of mobile phones that currently tops the market, these includes: Android, iPhone and Windows phone. They are usually classified according to the operating system where they are built with.

These string variables don't work:

The syntax error given:

Through experimentation I've figured out that I can mix and match single and double quotes in order to allow one or the other, but not both.

These string variables work: Hd 3000 driver windows 10.

SlyGuySlyGuy

1 Answer

I'm not sure if there is an escape character for strings (I searched and didn't find anything on this), however I found a way to get around this. I'm not saying it's the right way, but at least it might work for your situation.

To send quotes in, I used the ASCII value feature of sendln (actual documentation in the send function)

Testing the above macro yielded the following entered into the terminal

user1792398user1792398

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

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.

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.

Tera Term Macro Concatenate String Java

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

Free free photosuite download full version download software at UpdateStar - Easily touch-up, transform, organize and share photos with family and friends. It's like a whole suite of photo applications that enable you to do just about anything you can imagine with your pictures. Photosuite download.

Thanks

Tera Term Macro Concatenate String Tutorial

gradytraingradytrain

Vba Macro Concatenate

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