Solved

activex phone dialer

Posted on 2003-10-21
5
480 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month4 days, 13 hours left to enroll

635 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