Skype and C# – change your status text from a console app

If you want to integrate your application with Skype you can do it by using Skype4COM. This is a COM library that is installed with Skype on your local machine.

You can download the library from this link or you can search this page for more examples http://developer.skype.com/accessories.

I will show you a short example of how you could change your status from C#.

  • Create a Console Application in Visual Studio 2010 and make sure you set your target to .NET 4.0
  • Right click on the project and select Add Reference. In the COM section search for ‘skype’, select Skype4COM and click Add.

image

  • In your console application do the following:
    • add name space 
      • using SKYPE4COMLib;
    • add this code
      • var skype = new Skype();
        skype.Attach(5,true);
        skype.CurrentUserProfile.MoodText = "Set from my app";
         
Advertisements

2 thoughts on “Skype and C# – change your status text from a console app

  1. Hi, I tried the same .. but i am getting WaitTime Out Error after 30 seconds on skype.Attach(5,true) line.
    Could you please suggest ,if we need any Pre requistes(from Skype point of View) before running this console app

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s