how do I get VB to dial a phone 
Author Message
 how do I get VB to dial a phone

I am trying out how to make a phone dialer and can not figure out
why this code does not work...

Private Sub Command8_Click()

    ' Buffer to hold input string
    Dim Instring As String

    ' Use COM2.
    MSComm1.CommPort = 2

    ' 9600 baud, no parity, 8 data, and 1 stop bit.
    MSComm1.Settings = "9600,N,8,1"

    ' Tell the control to read entire buffer when Input
    ' is used.
    MSComm1.InputLen = 0

    ' Open the port.
    MSComm1.PortOpen = True

    ' Send the attention command to the modem.
    MSComm1.Output = "AT" + Chr$(13)

    ' Wait for data to come back to the serial port.

Do
       DoEvents
   Loop Until MSComm1.InBufferCount >= 2

    ' Read the "OK" response data in the serial port.
    Instring = MSComm1.Input

    ' Close the serial port.
    MSComm1.PortOpen = False
End Sub




Tue, 19 Sep 2000 03:00:00 GMT  
 how do I get VB to dial a phone

Quote:

> I am trying out how to make a phone dialer and can not figure out
> why this code does not work...

How about; It doesn't dial the phone because you haven't told it to.
Try ATZ, if you get no response from your attention command, then
ATD and the number.....


Wed, 20 Sep 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Question about dialing a phone from VB

2. VB 5.0 phone dialing - HELP

3. Dial Phone w/ VB - I should know this!

4. Doing Dial-up connections in VB

5. How to get Access 97 to Dial the phone via code

6. dialing a phone with mscomm32.ocx

7. How can I dial a phone number?

8. dialing phone numbers troght modem

9. VB5.0 phone dialing - help

10. dialing a phone

11. Dialing the phone.

12. Simple use of MSComm Control (phone dialing)

 

 
Powered by phpBB® Forum Software