Solved

activex phone dialer

Posted on 2003-10-21
5
472 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
Comment Utility
This is the example you need:

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

Thanks & Cheers
0
 

Author Comment

by:isnoend2001
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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

17 Experts available now in Live!

Get 1:1 Help Now