How to send Skype IM programmatically

30 Dec


In this tutorial, we ‘ll see how to send a IM to your Skype friends. For this, you need to access Skype API. There ‘s an Skype ActiveX component which allows to access their API. This is an object oriented layer which wraps the API functinality.

First you need to download the Skype4COM
component. Then You need to create an instance of type COM by specifying the path to above dll.

ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);

$skype = new COM('Skype4COM.Skype');

if (!$skype->client()->isRunning()) {
$skype->client()->start(true, true);

$members = new COM('Skype4COM.UserCollection');

$chat = $skype->CreateChatMultiple($members);
$chat->SendMessage("Hi friend");
Leave a comment

Posted by on December 30, 2012 in PHP



Leave a Reply

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

You are commenting using your 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

%d bloggers like this: