Results 1 to 5 of 5

Thread: messing with phones

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216

    messing with phones

    Let's consider the following code:

    Private Sub Dial(Number$)
    Dim DialString$
    DialString$ = "ATDT" + Number$ + ";" + vbCr
    MSComm1.CommPort = 3
    MSComm1.Settings = "9600,N,8,1"
    On Error Resume Next
    MSComm1.PortOpen = True
    If Err Then
    MsgBox "COM3: not available. Change the CommPort property to another port."
    Exit Sub
    End If

    ' Flush the input buffer.
    MSComm1.InBufferCount = 0

    ' Dial the number.
    MSComm1.Output = DialString$

    '..............
    End Sub

    The above Sub takes a number and dials it ....
    I'm wondering if it's possible to record (or get) the keystrockes of the target phone when a specified number is pushed when the connection is established (on the target keypad 1,2 ...#,*) !?!?!?!?
    I mean if this could be done using the "MSComm" by some added code?????

    10x anyway!!!

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216
    Is it that hard?
    I’m going desperate …

  3. #3
    Junior Member
    Join Date
    Jul 2002
    Location
    Newcastle
    Posts
    19
    trying to get your code to work but dont understand

    MSComm1.Settings = "9600,N,8,1"

    what does that do?
    david

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    Lost
    Posts
    216
    this code sets the control's port to communicate at 9600 baud with no parity checking, 8 data bits, and 1 stop bit.


    C?

  5. #5
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262
    Whats on the other end of the phone? It all depends on what is on the other end. If you have a phone and someone presses a number, the Comm Port will not know what the DTMF tones are, you would need some other piece of hardware out there.

    Jerel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width