Jump to content

Skype Objects


Recommended Posts

First, let me start by saying I HAVE searched the forums, and I HAVE found the SkypeAPI Example Script. I tried it, but the functions just hung.

Here is the script I am trying:

#RequireAdmin

;// Create a Skype4COM object:
$oSkype = ObjCreate("Skype4COM.Skype")
$oSkypeEvent = ObjEvent($oSkype,"Skype_")
$oError = ObjEvent("AutoIt.Error","MyErrFunc")

;// Start the Skype client:
If Not $oSkype.Client.IsRunning Then
 $oSkype.Client.Start()
EndIf

;// Verify that a user is signed in and online before continuing
While 1
 If $oSkype.CurrentUserStatus = $oSkype.Convert.TextToUserStatus("ONLINE") Then
 ExitLoop
 Else
 $oSkype.ChangeUserStatus($oSkype.Convert.TextToUserStatus("ONLINE"))
 EndIf
 Sleep(1000)
WEnd

This does not work for me. I wanted to know if:

anyone else has any problems

I'm doing it wrong

anyone has a solution

I'm willing to work for this. I don't want anyone to write it for me unless they have a working example they are willing to share.

And yes, this is someone else's example. I simply put #RequireAdmin at the top because I wasn't sure if it made a difference.

Thanks!

Edited by darkjohn20
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...