using COMs...

I have a GSM-modem connected to my COM-port.  If I wanna send SMS and I do it with Hyperterminal:

First I write this (phonenumber):
   at+cmgs="1234567"
then I press Enter

Then I write this (message):
   yeah yeah
and I press Ctrl+z.

How can I send these datas to my Com-port so that user just gives number and message and then press putton.

MSComm1.Output = "at+cmgs=""" _
& TextNumber & " "" " & vbCr '???

Main problem is to send Enter and Ctrl-z to modem.


Thanks in advance!
majalaAsked:
Who is Participating?
 
mcriderConnect With a Mentor Commented:
When sending the Enter, Try sending VbCrLf instead of just VbCr

To send a Ctl-Z, send Chr$(26)

Cheers!
0
 
vindevogelCommented:
for notification
0
All Courses

From novice to tech pro — start learning today.