![]() |
|
Basic Skype Mass Message - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: C, C++, & Obj-C (https://sinister.li/Forum-C-C-Obj-C) +--- Thread: Basic Skype Mass Message (/Thread-Basic-Skype-Mass-Message) |
Basic Skype Mass Message - Glacier - 03-15-2015 Not sure if this is in the correct place, move me if it's not. Code: using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Hub : Form
{
SKYPE4COMLib.Skype skype = new SKYPE4COMLib.Skype();
//By homological.
public Hub()
{
InitializeComponent();
}
private void buttonSend_Click(object sender, EventArgs e)
{
foreach (SKYPE4COMLib.IUser friend in skype.Friends)
{
switch(friend.OnlineStatus)
{
case SKYPE4COMLib.TOnlineStatus.olsOnline:
if (checkOnline.Checked)
{
skype.SendMessage(friend.Handle, richContent.Text);
}
break;
case SKYPE4COMLib.TOnlineStatus.olsOffline:
if (checkOffline.Checked)
{
skype.SendMessage(friend.Handle, richContent.Text);
}
break;
case SKYPE4COMLib.TOnlineStatus.olsDoNotDisturb:
if (checkBusy.Checked)
{
skype.SendMessage(friend.Handle, richContent.Text);
}
break;
case SKYPE4COMLib.TOnlineStatus.olsAway:
if(checkAway.Checked)
{
skype.SendMessage(friend.Handle, richContent.Text);
}
break;
}
}
}
}
}I made this as simple as possible, it's not the best it could be coded, just an example it works. RE: Basic Skype Mass Message - 0xDEAD10CC - 03-17-2015 There's a .NET forum here, and this isn't it. |