sending CTRL+Z to the COM port!!? 
Author Message
 sending CTRL+Z to the COM port!!?

I'm writing a program which required to send CTRL+Z to the COM port... it
goes like this:

MSComm1.Output = "AT+CMGS=1"
MSComm1.Output = "message blah blah" + [HERE]

at the [HERE] I should be sending CTRL+Z but I don't know how, could anyone
let me know? Is it Chr(something) ?

Thanks!

Peter



Wed, 18 Jun 1902 08:00:00 GMT  
 sending CTRL+Z to the COM port!!?
Chr$(26)


Quote:
> I'm writing a program which required to send CTRL+Z to the COM port... it
> goes like this:

> MSComm1.Output = "AT+CMGS=1"
> MSComm1.Output = "message blah blah" + [HERE]

> at the [HERE] I should be sending CTRL+Z but I don't know how, could
anyone
> let me know? Is it Chr(something) ?

> Thanks!

> Peter



Wed, 18 Jun 1902 08:00:00 GMT  
 sending CTRL+Z to the COM port!!?
There is no such thing as a Ctrl+Z charcter however in the old
terminal days, you used the control key with a alpha character to send
control codes ASCII 1 to ASCII 26 out the serial port.
The character that you want to send is the ASCII 26 character, i.e.
Chr$(26)
The Z character is the 26th character of the alphabet so a Ctrl+Z is
really an ASCII 26. Ctrl+M would be an ASCII 13 because the letter M
is the 13th character in the alphabet.

For more serial I/O solutions, tools and free utilities visit
http://www.taltech.com



Quote:
>I'm writing a program which required to send CTRL+Z to the COM port... it
>goes like this:

>MSComm1.Output = "AT+CMGS=1"
>MSComm1.Output = "message blah blah" + [HERE]

>at the [HERE] I should be sending CTRL+Z but I don't know how, could anyone
>let me know? Is it Chr(something) ?

>Thanks!

>Peter



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Send Ctrl-Z to Com Port using MSComm

2. Send Ctrl-Z to Com Port using MSComm

3. VB4.0 sending commands to rs232 (com port) and printer port

4. Sending CTRL key to a comm port?!

5. sending Ctrl+A keystroke to COM1 port

6. Sending Ctrl-Break to Serial port

7. Finding COM Ports - Mouse dies when VB talks to its COM Port

8. How to send data to a com-port

9. Sending Things on Com Ports

10. Sending data thru the COM ports

11. Sending signals to com or lpt port

12. Newbie Question - Code to send info to a Com port

 

 
Powered by phpBB® Forum Software