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.
Asked
Active
Viewed 5,928 times
2 Answers
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);

Vagaus
- 4,174
- 20
- 31
-
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? – Alex Apr 15 '11 at 08:02
-
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: http://developer.skype.com/accessories – Vagaus Apr 15 '11 at 11:02
-
Is it required to call skype.Attach(5, true); ? For me the sample works even without it. – rudolf_franek Mar 12 '12 at 22:20
-
Based on the Attach method docs ("This command establishes a connection to Skype") I'd assume it is required. – Vagaus Mar 13 '12 at 20:41
-
Seems that this link (developer.skype.com) does not work any more. Do you have any other link (maybe @Microsoft)? – Matt Mar 18 '20 at 08:38
-
What I found so far is: [Skype for Business API SDK](https://learn.microsoft.com/en-us/skype-sdk/appsdk/apioverview) – Matt Mar 18 '20 at 08:43
-
I found an unofficial api manual that someone posted online: https://documentation.help/Skype4COM/group__sk4com.html#ga1d58cda22ab127c99195ee3871ee7953 – mberna Jul 14 '21 at 15:01
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.

razlebe
- 7,134
- 6
- 42
- 57
-
-
It is in that skype4com is a set of objects representing the Skype API. – razlebe Apr 14 '11 at 11:49
-
Seems that this link (developer.skype.com) does not work any more. Do you have any other link (maybe @Microsoft)? – Matt Mar 18 '20 at 08:38
-
@Matt Here is a link to the accessories page. https://web.archive.org/web/20111120064630/http://developer.skype.com/accessories The waybackmachine is a cool tool for resurrecting dead websites/pages. See also: https://web.archive.org/web/20111121201801/http://developer.skype.com/public-api-reference – mberna Jul 14 '21 at 14:55