How ca开发者_Python百科n I change my Skype status (from online to away, offline) using skype4com dll? I am working in C#. Answers that provide sample code would be most helpful to me.
Once you have attached to skype you just need to call ChangeUserStatus method:
var skype = new Skype();
skype.Attach(5, true);
skype.ChangeUserStatus(TUserStatus.cusAway);
I believe you can use the GET USERSTATUS
command via the Skype Public API ("Skype Accessories"), which enables you to get or set the user's status.
The API reference documentation is here.
精彩评论