Skype4COM 1.0.36.0
|
Search.vbs
This script performs a simple search for a user.
Copyright � 2004-2006 Skype Limited. Licensed under BSD license.
'// Create a Skype4COM object: Set oSkype = WScript.CreateObject("Skype4COM.Skype","Skype_") '// Start the Skype client: If Not oSkype.Client.IsRunning Then oSkype.Client.Start() End If '// Search for users John Doe and return the Skypname, full name and country of each matching user: Set oUsers = oSkype.SearchForUsers("john doe") For Each oUser In oUsers WScript.Echo oUser.Handle &" "& oUser.Fullname &" "& oUser.Country Next '// The AttachmentStatus event handler monitors attachment status and automatically attempts to reattach to the API following loss of connection: Public Sub Skype_AttachmentStatus(ByVal aStatus) WScript.Echo ">Attachment status " & oSkype.Convert.AttachmentStatusToText(aStatus) If aStatus = oSkype.Convert.TextToAttachmentStatus("AVAILABLE") Then oSkype.Attach() End If End Sub
Copyright � 2006 Skype Limited. All rights reserved.