Solved

activex phone dialer

Posted on 2003-10-21
5
474 Views
Last Modified: 2008-02-01
Want to add a phone dialer to my vb app.Looking  to purchase an activex phone dialer, looked at few, but don't need
all the bells and whistles. just want a phone dialer that will
realiably find the users com port the modem is hooked to, check the line statis and then dial the number.
0
Comment
Question by:isnoend2001
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
fantasy1001 earned 250 total points
ID: 9596263
This is the example you need:

http://www.saberman.com/VBSamples/SABPhone/Index.htm

Thanks & Cheers
0
 

Author Comment

by:isnoend2001
ID: 9598757
Thanks for example, but users are prompted for a port number and most users do not even know what a port is.
0
 
LVL 5

Expert Comment

by:fantasy1001
ID: 9603197
You can search for modem port by this
'Controls: Timer1 (Timer), MSComm1 (MSComm control)
'Code:
Private Sub Form_Load()
    Dim s As String
    Dim iPort As Integer
    Dim n As Single
    Dim bModem As Boolean
   
    For iPort = 1 To 4
        With MSComm1
            .CommPort = iPort
            .Settings = "9600,N,8,1"
            .InputLen = 0
            On Error Resume Next
            .PortOpen = True
            If Err = 0 Then
                .Output = "ATV1Q0" & Chr$(13)
                n = Timer
                While Timer - n < 1
                    DoEvents
                Wend
                s = s & .Input
                .PortOpen = False
                If InStr(s, "OK" & vbCrLf) <> 0 Then
                    MsgBox "Modem detected on COM" & iPort
                    bModem = True
                    Exit For
                End If
            End If
        End With
    Next
    If Not bModem Then MsgBox "No modem detected"
    End
End Sub

iPort will be the modem port currently hook on to the computer
0
 
LVL 27

Expert Comment

by:planocz
ID: 10119887
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from isnoend2001 from 10/22/2003 comment
Award points to fantasy1001 is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now