Skype Interface

I need to create an application in VB6 using SkypeContacts ActiveX Control or the Skype4Com where I put in a phone number and dial the number.

Does anyone have an example or VB doc. showing how this can be done?

Thanks in advance for your assistance.

Phil
LVL 2
Phil ChapmanAsked:
Who is Participating?
 
Reek0Connect With a Mentor Commented:
The example is vb6 on the website - but I gave you vb.net code - add the library then add the code and it will dial!

Try it!


Public WithEvents skype As SKYPE4COMLib.Skype
 
 Public Sub DialSkypeNumber()
        If skype Is Nothing Then
            skype = New SKYPE4COMLib.Skype
        End If
        Try
            '    If Not skype.Call.Status = SKYPE4COMLib.TCallStatus.clsBusy Then
            skype.PlaceCall("+" & ReturnNumber.ToString)
            ' End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
 
    End Sub

Open in new window

0
 
Reek0Commented:
How about using vb.net? Also there are examples for vb6 on the skype website in the developer zone.
0
 
Phil ChapmanAuthor Commented:
I was unable to find anything in vb6 regarding how to programmatically place a call.  If you find it please send me a link to it.
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Reek0Commented:
Hi Phil

This is for vb6

https://developer.skype.com/Docs/Skype4COMLib/Examples

and this is what I have that I am using in VB.net - make sure you install skype and then add SKYPE4COMLIB as a reference to your project

  Public WithEvents skype As SKYPE4COMLib.Skype

 Public Sub DialSkypeNumber()
        If skype Is Nothing Then
            skype = New SKYPE4COMLib.Skype
        End If
        Try
            '    If Not skype.Call.Status = SKYPE4COMLib.TCallStatus.clsBusy Then
            skype.PlaceCall("+" & ReturnNumber.ToString)
            ' End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try

    End Sub

This is just for making a call, however I can send you code for event handling also

0
 
Phil ChapmanAuthor Commented:
It looks like everything is in .NET.  I have VB .NET Visual Studio 2005  but have never used it.

If you have a sample .NET program that uses the Skype Skype4Com I would really appreciate it.

Thanks In Advance for your help


0
 
Phil ChapmanAuthor Commented:
Thanks Verry Much For The Help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.