PDA

Click to See Complete Forum and Search --> : messing with phones


Mimo
Feb 28th, 2003, 06:25 PM
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!!!

Mimo
Mar 4th, 2003, 05:49 AM
Is it that hard?
I’m going desperate …
:(

david maddison
Mar 5th, 2003, 03:15 AM
trying to get your code to work but dont understand

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

what does that do?

Mimo
Mar 5th, 2003, 11:23 AM
this code sets the control's port to communicate at 9600 baud with no parity checking, 8 data bits, and 1 stop bit.


C?

Phenglai
Mar 5th, 2003, 07:49 PM
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