How can I change Skype user status from online to away using skype4com?
Asked Answered
S

2

10

How can 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.

Steppe answered 14/4, 2011 at 11:30 Comment(0)
B
5

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);
Baccy answered 14/4, 2011 at 15:2 Comment(7)
have any idea how to change the status?i mean if i want to add near my online icon a message or a link to a music..how can do that?Steppe
I haven't tried but I guess that: skype.CurrentUserProfile.MoodText = 'I'm listening 3 Doors Down'; should do. You can find more info here: developer.skype.com/accessoriesBaccy
Is it required to call skype.Attach(5, true); ? For me the sample works even without it.Remontant
Based on the Attach method docs ("This command establishes a connection to Skype") I'd assume it is required.Baccy
Seems that this link (developer.skype.com) does not work any more. Do you have any other link (maybe @Microsoft)?Fortis
What I found so far is: Skype for Business API SDKFortis
I found an unofficial api manual that someone posted online: documentation.help/Skype4COM/…Briscoe
B
1

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.

Barkentine answered 14/4, 2011 at 11:37 Comment(4)
the answer is not for skype4com, is it?Catamount
It is in that skype4com is a set of objects representing the Skype API.Barkentine
Seems that this link (developer.skype.com) does not work any more. Do you have any other link (maybe @Microsoft)?Fortis
@Fortis Here is a link to the accessories page. web.archive.org/web/20111120064630/http://developer.skype.com/… The waybackmachine is a cool tool for resurrecting dead websites/pages. See also: web.archive.org/web/20111121201801/http://developer.skype.com/…Briscoe

© 2022 - 2024 — McMap. All rights reserved.