Posts tagged ‘Skype’

Skype Onlinestatus mit C# setzen

Eric Wroolie zeigt in seinem Blogeintrag unter , wie man per Powershell den Onlinestatus setzt (Hinweis: Das Skype COM Add-In muss wohl nicht extra registriert werden, Skype installiert es schon mit). Seine Lösung funktioniert auch sehr gut, aus Interesse und praktischem Anlass wollte ich aber eine kleine Exe haben, die das Setzen des Status übernimmt. Folgender C# Code macht schon genau das, was er soll, Exception-Handling etc. fehlt aber noch.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SKYPE4COMLib;
 
namespace COM_Testapplication
{
    class Program
    {
        public static Skype skype = new Skype();
        static void Main(string[] args)
        {
            User currentUser = skype.get_User();
            skype.ChangeUserStatus(skype.Convert.TextToUserStatus("ONLINE"));
        }
    }
 
}

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website