|
-
Feb 28th, 2003, 07:25 PM
#1
Thread Starter
Addicted Member
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!!!
-
Mar 4th, 2003, 06:49 AM
#2
Thread Starter
Addicted Member
Is it that hard?
I’m going desperate …
-
Mar 5th, 2003, 04:15 AM
#3
Junior Member
trying to get your code to work but dont understand
MSComm1.Settings = "9600,N,8,1"
what does that do?
-
Mar 5th, 2003, 12:23 PM
#4
Thread Starter
Addicted Member
this code sets the control's port to communicate at 9600 baud with no parity checking, 8 data bits, and 1 stop bit.
C?
-
Mar 5th, 2003, 08:49 PM
#5
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|