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.
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.
Tap your profile picture > Tap the Settings button > Tap Privacy > then you can toggle Show my presence to others on or off.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With