Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 209
Alex Avatar asked Apr 14 '11 11:04

Alex


People also ask

Why is my Skype status always online?

Set automatically when you first sign in. You'll remain active on your desktop when Skype is running in the background and you're using your keyboard or mouse, and on your mobile device when Skype is running in the foreground.

How can I hide my last seen on Skype 2022?

Tap your profile picture > Tap the Settings button > Tap Privacy > then you can toggle Show my presence to others on or off.

Why can't I change Skype status online?

Skype needs an Internet connection to sign you in, but it can continue running without one. If you can't change your status from "offline," then you might have lost your Internet connection after you logged in.


2 Answers

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);
like image 167
Vagaus Avatar answered Oct 24 '22 20:10

Vagaus


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.

like image 36
razlebe Avatar answered Oct 24 '22 22:10

razlebe