1

好吧,我在 Skype 中搜索添加用户的代码,但我发现的唯一内容是:

Imports SKYPE4COMLib

Public Class frmMain

    Public WithEvents oSkype As New SKYPE4COMLib.Skype

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        oSkype.Client.OpenAddContactDialog("username")
    End Sub
End Class

但它没有发送任何请求.. oSkype.Friends.Add(New SKYPE4COMLib.User("username"))不起作用..

帮助请!:(

4

3 回答 3

0
Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)

Private Sub Command1_Click()
Skype1.Client.OpenAuthorizationDialog "username_here"
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{TAB}"
Sleep 1000
WshShell.SendKeys "{ENTER}"
Sleep 1000


End Sub
于 2015-02-15T22:43:07.880 回答
0

只需这样做:

u.BuddyStatus = TBuddyStatus.budPendingAuthorization
于 2015-02-15T21:47:00.760 回答
0

您不能直接使用 Skype4COM 添加朋友您必须(而且我知道这很糟糕)通过打开联系人对话框向他们发送请求。对不起。

于 2013-08-08T07:37:16.483 回答