

SkypeStatusChanger_Extended.zip is more real-world app with UI and other features.It contains two projects: library (with some additional methods not described here) and console application. SkypeStatusChanger.zip is the simple prototype app that covers current article.All manipulations of user status must be done when Skype is running. Access Skypeįirst time app connects to Skype you need to allow connection from Skype: Here we save user status before locking, change it to Away and restore status after unlocking. private static void systemEventsSessionSwitch( object sender, SessionSwitchEventArgs e)Ĭonsole.WriteLine(StatusChanged + UserStatus.Away) Ĭonsole.WriteLine(StatusChanged + lastUserStatus) SystemEvents.SessionSwitch += systemEventsSessionSwitch

Private static UserStatus lastUserStatus = UserStatus.Unknown Private static SkypeHelper skyper = new SkypeHelper() Private const string StatusChanged = " Status changed to: " If Skype4COM.dll was not registered as COM server (you'll get an exception about this in your app) register it using the command line:.Change Platform Target of project to x86.Add reference on Skype4COM.dll to project.If your OS is 圆4 look in Program Files (x86) instead of Program Files. The library also could be found in the C:\Program Files\Common Files\Skype directory after Skype installation. Skype4COM is an ActiveX component that represents the Skype API as objects, with properties, commands, events and notifications. I decided to reach similar functionality in Skype. Also we have corporate IM tool that changes users status regarding to Windows user activity. So co-workers still writing me messages because they assume I online. And when I leave my workplace I usually lock PC but Skype status still be "Online". This tip describes an implementation of a little app that changes the Skype status to "Away" whenever the user locks Windows and brings it back to the previous status when the user unlocks the system. Download SkypeStatusChanger.zip - 13.9 KB.Download SkypeStatusChanger_Extended.zip - 83.6 KB.
