You need a link to the iChat interface .
You can get such a link using the ISkype.Chat property .
Once you have the iChat link, it is just a matter of calling the SendMessage () method.
If you like, you can look in the Skype plugin, I wrote here . (Of course, you donβt need to understand the whole application. Just look at the application class defined in Application.cs)
[]
using System;
using System.Windows.Forms;
using SKYPE4COMLib;
namespace SkypeClient
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
ISkype skype = new SkypeClass();
skype.Attach(5, true);
int count = skype.Chats.Count;
textBox1.Text = "Count: " + count + "\r\n";
foreach (IChat chat in skype.Chats)
{
textBox1.Text += "\r\n" + chat.FriendlyName;
}
}
}
}
, .