Some comments about the MoodText:
1. Skype.CurrentUser.MoodText is read only because the CurrentUser property returns the standard User object, which is also used to return information about other Skype users.
2. Skype.CurrentUserProfile returns the Profile object instead, and this can be used to modify current user properties (like from "My Profile" dialog).
The following vbscript example illustrates the sendcommand usage:
CODE
'// Create skype object
Set oSkype = WScript.CreateObject("Skype4COM.Skype","Skype_")
'// Start minimized and without splash screen
If Not oSkype.Client.IsRunning Then oSkype.Client.Start True, True End If
'// Attach
oSkype.Attach
'// Non-blocking commands
oSkype.SendCommand(oSkype.Command(0, "FOCUS"))
oSkype.SendCommand(oSkype.Command(1, "GET AUDIO_IN", "AUDIO_IN"))
oSkype.SendCommand(oSkype.Command(2, "GET AUDIO_OUT", "AUDIO_OUT"))
WScript.Sleep(1000)
'// Blocking commands
oSkype.SendCommand(oSkype.Command(3, "GET CURRENTUSERHANDLE", "CURRENTUSERHANDLE", True))
oSkype.SendCommand(oSkype.Command(4, "GET USER echo123 FULLNAME", "USER echo123 FULLNAME", True))
oSkype.SendCommand(oSkype.Command(5, "GET USER echo123 DISPLAYNAME", "USER echo123 DISPLAYNAME", True))
oSkype.SendCommand(oSkype.Command(6, "GET USER echo123 COUNTRY", "USER echo123 COUNTRY", True))
WScript.Sleep(1000)
'//Blocking search
Set oBlockingSearch = oSkype.Command(8888, "SEARCH USERS echo123", "USERS ", True)
oSkype.SendCommand(oBlockingSearch)
WScript.Echo "Search Result:" & oBlockingSearch.Reply
'//Non-blocking search
Set oSearchCommand = oSkype.Command(9999, "SEARCH USERS john doe", "USERS ")
oSkype.SendCommand(oSearchCommand)
WScript.Echo "Sleeping ..."
WScript.Sleep(30000)
'// Attachment status
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
'// Command events
Public Sub Skype_Command(ByRef aCmd)
WScript.Echo "C(" & aCmd.Id & "): " & aCmd.Command
End Sub
'// Reply events
Public Sub Skype_Reply(ByRef aCmd)
WScript.Echo "R(" & aCmd.Id & "): " & aCmd.Reply
If IsObject(oSearchCommand) Then
If oSearchCommand.Id = aCmd.Id Then
WScript.Echo "Search Finished!"
End If
End If
End Sub