- 我如何在我的vb.net應用程序中包含skype庫?
- 如何通過vb,net在Skype上打電話?
0
A
回答
1
Skype提供了一個可以在VB.NET中使用的COM API。從VB.NET使用COM的更多信息,請參閱:
http://msdn.microsoft.com/en-us/library/x66s8zcd.aspx
Skype的API文檔可以在這裏找到:
https://developer.skype.com/Docs/ApiDoc
而且,雖然不是在VB.NET有良好例如如何在SEHE AKA Skype Event Handler Example中使用Skype API。它是用C#編寫的,但同樣的原則適用於VB.NET,語法略有不同。
1
這是在C#中,但它很容易轉換到VB using the Skype API
1
這裏是放置在Skype通話與vb.net,inculding申報代碼。
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
放置到有人爲呼叫其他人只需更換echo123,不要忘記了「引號」