making a call through vb.net using skype api

柔情痞子 提交于 2019-12-25 18:59:26

问题


  1. how do i include the skype libraries in my vb.net app?
  2. how do i make a call on skype through vb,net?

回答1:


Skype provides a COM API that can be used from VB.NET. For more info on using COM from VB.NET see:

http://msdn.microsoft.com/en-us/library/x66s8zcd.aspx

The Skype API documentation can be found at:

https://developer.skype.com/Docs/ApiDoc

And, although not in VB.NET there is good example of how to use the Skype API in the SEHE AKA Skype Event Handler Example. It is written in C#, but the same principles apply to VB.NET, just slightly different syntax.




回答2:


This is in C# but its easy enough to convert to VB using the Skype API




回答3:


here is the code to place a call on skype with vb.net, inculding declaration.

Imports SKYPE4COMLib
Public class form 1
Public WithEvents skype As New SKYPE4COMLib.Skype
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  'check if the skype client is running
  If Not skype.Client.IsRunning Then
        skype.Client.Start()
    End If
end sub
'use a button or other control to place a call to the test account of skype
 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    skype.PlaceCall("echo123")
End Sub

to place a call to somone else just replace echo123, dont forget the "quotes"



来源:https://stackoverflow.com/questions/1020629/making-a-call-through-vb-net-using-skype-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!