Roy Wang
Roy Wang

Reputation: 11260

Skype4com auto accept contact request

I'm using a VBScript to auto accept Skype incoming contact request:

Public Sub Skype_UserAuthorizationRequestReceived(ByVal pUser)
    pUser.IsAuthorized = true 
End Sub

This works but is there a way to prevent Skype from alerting me through the tray?

tray icon

I have already removed notification for contact request:

configuration

but it still appears.

It's also giving me a strange error:

Skype4COM.Skype.1: Invalid value given to ISAUTHORIZED/ISBLOCKED (code: 80020009)

I tried another approach of using

oSkype.Client.OpenAuthorizationDialog(pUser.Handle)

but it's giving an 'OPEN User already authorized' error.

Upvotes: 1

Views: 249

Answers (1)

Hawkeye111
Hawkeye111

Reputation: 37

I got an example that might help you.

    Private Sub FRAccept(pUser As User)
    If FlatToggle1.Checked = True And pUser.IsAuthorized = False Then
        pUser.IsAuthorized = True
    End If
End Sub

Upvotes: 1

Related Questions