WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Serial
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Sending Control Characters to Com Port

Keywords:    Num2Char

Question:

I have the serial extender running well and have it communicating with a serial device I have here. One question though, if I want to send a Ctrl-IT (That's control I T at the same time) what would be the standard Winbatch command to does this? Would it be like @ctrl-i-t? or something like that?

Answer:

Ctrl-A is a 1

Ctrl-Z is 26

So you could do something like:

        Ctrl_A=Num2Char(1)
        Ctrl_I=Num2Char(9)
        Ctrl_T=Num2Char(20)
        Ctrl_Z=Num2Char(26)
So it is Ctrl-I followed by a normal T?

Or is it Ctrl_I followed by a CTRL-T?

Let's say the T is normal:

	CTRL_IT=strcat(Ctrl_I,"T")
Or if it's Ctrl-I Ctrl-T:
	CTRL_I_CTRL_T=strcat(Ctrl_I,CTRL_T)

Article ID:   W12576
Filename:   Sending Control Characters to Com Port.txt
File Created: 1999:04:15:16:48:10
Last Updated: 1999:04:15:16:48:10