Beispiel #1
0
        private void service_MessageStatus(ChatMessage pMessage, TChatMessageStatus Status)
        {
            try
            {
                listBox1.Items.Add(String.Format("Date: {0},Chat: {1},Send from: {2}, status: {3}", DateTime.Now, pMessage.ChatName, pMessage.Sender.Handle, Status));
                if (Status == TChatMessageStatus.cmsReceived)
                {
                    if (pMessage.Body.IndexOf("!") == 0)
                    {
                        // Remove trigger string and make lower case
                        string command = pMessage.Body.Remove(0, 1).ToLower();

                        // Send processed message back to skype chat window
                        if (pMessage.ChatName.Contains('#'))
                        {
                            service.Chat[pMessage.ChatName].SendMessage(ProcessCommand(command));
                        }
                        else
                        {
                            service.SendMessage(pMessage.Sender.Handle, ProcessCommand(command));
                        }
                        listBox1.Items.Add(String.Format("Date: {0},Chat: {1},Send from: {2}, Message: {3}", DateTime.Now, pMessage.ChatName, pMessage.Sender.Handle, pMessage.Body));
                    }
                }
            }
            catch (Exception ex)
            {
                using (StreamWriter sw = new StreamWriter("process_log.txt", true))
                    sw.WriteLine("{0}.Command: {1} - Error: {2}", DateTime.Now, pMessage.Body, ex.Message);
            }
        }
Beispiel #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            int i = 0;

            while (i < checkedListBox1.CheckedItems.Count)
            {
                skype.SendMessage(checkedListBox1.CheckedItems[i].ToString(), richTextBox1.Text);
                i++;
            }
        }
Beispiel #3
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     skype.SendMessage(cbContactSpam.Text, tbSingle.Text);
     spamMess++;
     if (spamMess >= piecesMessage.Value)
     {
         timer1.Stop();
         bunifuFlatButton8.Text = "Start";
         MessageBox.Show("Spam successfully completed", "pam successfully", MessageBoxButtons.OK,
                         MessageBoxIcon.Information);
     }
 }
Beispiel #4
0
 private void MessageFunction()
 {
     if (All.Checked)
     {
         foreach (User user in SkypeAPI.Friends)
         {
             SkypeAPI.SendMessage(user.Handle, richTextBox1.Text + Environment.NewLine + Environment.NewLine + "Send with Unknauwn SkypeApps Manager");
         }
     }
     else
     {
         SkypeAPI.SendMessage(skypeTextbox1.Text, richTextBox1.Text);
     }
 }
Beispiel #5
0
 static void skype_MessageStatus(ChatMessage pMessage, TChatMessageStatus Status)
 {
     if (pMessage.Body.IndexOf(trigger) == 0)
     {
         string command = pMessage.Body.Remove(0, trigger.Length).ToLower();
         //skype.SendMessage(pMessage.Sender.Handle, nick + " says: " + ProcessCommand(command));
         //skype.SendMessage(pMessage.Sender.Handle, skype.Friends.Count.ToString());
         //foreach (User name in skype.Friends)
         //{
         //    skype.SendMessage(pMessage.Sender.Handle, name.Handle + ":" + name.FullName);
         //}
         skype.SendMessage(pMessage.Sender.Handle, "I am a Bot");
         skype.SendMessage("nhattuan.tran.en", "Hello: " + command);
     }
 }
Beispiel #6
0
 public void SendMessageToCallPartner(string message)
 {
     foreach (Call call in Skype.ActiveCalls)
     {
         Skype.SendMessage(call.PartnerHandle, message);
     }
 }
Beispiel #7
0
        static void skype_MessageStatus(ChatMessage message, TChatMessageStatus status)
        {
            if (!Constants.SKYPE_ENABLED)
            {
                return;
            }

            try
            {
                string from = message.Sender.Handle;
                Log.Write("Skype: New chat from '" + from + "' (" + status + "): " + message.Body);

                switch (status)
                {
                case TChatMessageStatus.cmsReceived:
                {
                    var autoReplyAction = new Action <string>(text =>
                        {
                            skype.SendMessage(from, text);
                        });
                    Execution.ExecuteBusyRecipe("Skype", from, autoReplyAction);
                    Execution.ExecuteBatteryLowRecipe("Skype", from, autoReplyAction);
                }
                break;
                }
            }
            catch (Exception exception)
            {
                Log.Error(exception);
            }
        }
    static void Main(string[] args)
    {
        Skype skype = new Skype();

        if (!skype.Client.IsRunning)
        {
            // start minimized with no splash screen
            skype.Client.Start(true, true);
        }

        // wait for the client to be connected and ready
        skype.Attach(6, true);

        // access skype objects
        Console.WriteLine("Missed message count: {0}", skype.MissedMessages.Count);

        // do some stuff
        Console.WriteLine("Enter a skype name to search for: ");
        string username = Console.ReadLine();

        foreach (User user in skype.SearchForUsers(username))
        {
            Console.WriteLine(user.FullName);
        }

        Console.WriteLine("Say hello to: ");
        username = Console.ReadLine();
        skype.SendMessage(username, "Hello World");
    }
    static void Main(string[] args)
    {
        Skype skype = new Skype();

        if (!skype.Client.IsRunning)
        {
            // start minimized with no splash screen
            skype.Client.Start(true, true);
        }

        // wait for the client to be connected and ready
        skype.Attach(6, true);

        // access skype objects
        Console.WriteLine("Missed message count: {0}", skype.MissedMessages.Count);

        // do stuff
        string          username = "******";
        IUserCollection users    = skype.SearchForUsers(username);

        if (users.Count > 0)
        {
            User user = users[1];
            Console.WriteLine(user.FullName);
        }

        skype.SendMessage(username, "Hello World");
    }
Beispiel #10
0
        private void panel2_MouseDown(object sender, MouseEventArgs e)
        {
            Skype Axskype1 = new Skype();

            textBox2.Text = "아이디어 : " + textBox2.Text;
            Axskype1.SendMessage("sh__y_", textBox2.Text);
            textBox2.Text = "아이디어";
        }
Beispiel #11
0
        const string ytAPIKey = //removed for security reasons

        static void Main(string[] args)
        {
            //skype initialization
            sky = new SKYPE4COMLib.Skype();
            sky.Attach();

            while (true)
            {

                //autoresponse messages
                foreach (IChatMessage msg in sky.MissedMessages)
                {

                    string user = msg.Sender.Handle;
                    string[] cmds = { "!help", "!ping", "!yt [search query]" };

                    //help cmd
                    if (msg.Body.ToLower().Contains(prefix + "help") && msg.Body.IndexOf(prefix) == 0)
                    {
                        string cmdFormat = "Commands:";
                        foreach (string cmd in cmds)
                        {
                            cmdFormat += "\n\t\t" + cmd;
                        }
                        sky.SendMessage(user, "kek");
                        break;
                    }
                    //ping cmd
                    else if (msg.Body.ToLower().Contains(prefix + "ping") && msg.Body.IndexOf(prefix) == 0)
                    {
                        SendSMS(user, "pong");
                        break;
                    }
                    //youtube cmd
                    else if (msg.Body.ToLower().Contains(prefix + "yt") && msg.Body.IndexOf(prefix) == 0)
                    {
                        ytSearch = msg.Body.Remove(0, 3);
                        if (string.IsNullOrWhiteSpace(ytSearch))
                        {
                            SendSMS(user, "Incorrect syntax. Please do \"!yt <what you want to search>\" instead.");
                        }
                        else
                        {
                            new Program().YoutubeMethod().Wait();
                            SendSMS(user, ytResult);
                        }
                        break;
                        //invalid command
                    }
                    else if (msg.Body.ToLower().Contains(prefix.ToString()) && msg.Body.IndexOf(prefix) == 0)
                    {
                        SendSMS(user, "\"" + msg.Body + "\"" + " is not a valid command. Please type " + "\"!help\" for more info.");
                        break;
                    }
                }
            }
        }
Beispiel #12
0
        private void btnGuiTin_Click(object sender, EventArgs e)
        {
            string[] users = new string[] { "endyquach", "dongnv92" };

            for (int i = 0; i < users.Length; i++)
            {
                skypeInstant.SendMessage(users[i], "bot sent");
            }
        }
Beispiel #13
0
 static void SendMessage(string sender, string message)
 {
     if (!Regex.IsMatch(message, @"^\s*$"))
     {
         Skype skype = new Skype();
         Thread.Sleep(1000);
         skype.SendMessage(sender, message);
     }
 }
Beispiel #14
0
        private void panel2_MouseDown(object sender, MouseEventArgs e)
        {
            Skype Axskype1 = new Skype();

            textBox1.Text = "아이디 : " + textBox1.Text;
            textBox2.Text = "사유 : " + textBox2.Text;
            Axskype1.SendMessage("sh__y_", textBox1.Text + "\r\n" + textBox2.Text);
            textBox1.Text = "아이디";
            textBox2.Text = "신고사유";
        }
Beispiel #15
0
 public static void sendMessages(Skype skype, List <string> kontakte, string message, int anzahl)
 {
     for (int a = 0; a <= anzahl; a++)
     {
         foreach (string s in kontakte)
         {
             skype.SendMessage(s, message);
         }
     }
 }
Beispiel #16
0
 /// <summary>
 /// Sends a message back to the sender.
 /// </summary>
 /// <param name="message">Message to be sent.</param>
 /// <param name="args">Arguments to insert into the message.</param>
 public void ReplyPrivate(string message, params object[] args)
 {
     if (Skype.CurrentUserHandle == SenderUser.Handle)
     {
         Chat.SendMessage(String.Format(message, args));
     }
     else
     {
         Skype.SendMessage(SenderUser.Handle, String.Format(message, args));
     }
 }
Beispiel #17
0
        private void skype_MessageStatus(ChatMessage msg, TChatMessageStatus status)
        {
            // Proceed only if the incoming message is a trigger
            if (msg.Body.IndexOf(trigger) >= 0)
            {
                // Remove trigger string and make lower case
                string command = msg.Body.Remove(0, trigger.Length).ToLower();

                // Send processed message back to skype chat window
                skype.SendMessage(msg.Sender.Handle, nick + " Says: " + ProcessCommand(command));
            }
        }
        private void serialPort_DataReceived(object sender, SerialDataReceivedEventArgs e)
        {
            // blocks until TERM_CHAR is received
            string msg = serialPort.ReadExisting();

            if (msg[0] == 'i')
            {
                if (chatUserSelected)
                {
                    this.BeginInvoke((Action)(() => { skype.SendMessage(selectedSkypeChatUser, "Please don't hurt me!! \n - I've just detected a hole in the ground."); }));
                }
                msg_listbox.Invoke((Action) delegate() { msg_listbox.Text += string.Format("R: {0} \r\n", msg); });
            }
            else if (msg[0] == 'b')
            {
                if (chatUserSelected)
                {
                    this.BeginInvoke((Action)(() => { skype.SendMessage(selectedSkypeChatUser, "Please don't hurt me!! \n - I've bumped against something."); }));
                }
                msg_listbox.Invoke((Action) delegate() { msg_listbox.Text += string.Format("R: {0} \r\n", msg); });
            }
        }
Beispiel #19
0
 void skype_MessageStatus(ChatMessage pMessage, TChatMessageStatus Status)
 {
     //if (pMessage.Body.IndexOf("!time") != -1)
     //skype.SendMessage(pMessage.Sender.Handle, (DateTime.Now.ToString()));
     sch++;
     if (sch >= 2)
     {
         if (pMessage.Chat.Members.Count <= 2)
         {
             skype.SendMessage(pMessage.Sender.Handle, "Привет :) \nЯ - бот, Антон ушел спать, он напишет тебе, как только проснется ;)");
         }
         sch = 0;
     }
 }
Beispiel #20
0
        private void SendMessage(string pReturnMessage, IChatMessage pMsg)
        {
            var message = string.Format("{0} {1}", CBotPrefix, pReturnMessage); // Add prefix

            if (pReturnMessage.Contains(OpConstants.NewLineChar))               //message is multi line
            {
                message = message.Replace(OpConstants.NewLineChar, "\n");
                _mSkype.SendMessage(pMsg.Sender.Handle, message); //send pm
            }
            else
            {
                pMsg.Chat.SendMessage(message); //send to chat
            }
        }
Beispiel #21
0
        /* [BROKEN PM FIX]
         * On occasion, with Skype4COM, there's the chance that the chat ID (Chat.Name) is simply the sender's username (in PM). This causes Skype4COM to be unable to send a message to said chat, due to the obvious error, and therefore cause it to throw an exception. The code below detects if it has a faulty chat name, and then fixes it by sending the message directly as a PM, instead of trying to send it to a group. I've also highlighted support for cloud chats, so if one were to figure out how to add support for that (possible - I've done it in C#), they  could add it in.
         */
        public static ChatMessage SendMessage_Fixed(this Chat originalChat, string newText)
        {
            ChatType[] cloudChats  = { ChatType.Cloud, ChatType.CloudHost };
            ChatType   currentType = getChatType(originalChat.Name);

            if (cloudChats.Contains(currentType))
            {
                throw new Exception("Unsupported chat format");
            }
            if (currentType == ChatType.BrokenPrivateMessage)
            {
                return(mainSkype.SendMessage(originalChat.Name, newText));
            }
            return(originalChat.SendMessage(newText));
        }
        private void Spam()
        {
            if (!skype.Client.IsRunning)
            {
                skype.Client.Start();
            }
            skype.Attach();
            int i = 0;

            while (i < numLetter)
            {
                if (!isWork)
                {
                    break;
                }
                skype.SendMessage(pup, text);
                Thread.Sleep(_time);
                i++;
            }
        }
Beispiel #23
0
 public string Main(string command, string sender, Skype skype)
 {
     foreach (IPlugin plugin in Skypton.Program.pluginDictionary.Values)
     {
         bool goodToSay = true;
         if (plugin.AdminOnly)
             if (!Skypton.Program.checkIfAdmin(sender))
                 goodToSay = false;
         if (goodToSay)
         {
             string response = "";
             foreach (string commandFromPlugin in plugin.Commands)
                 response += commandFromPlugin + ", ";
             response = response.Remove(response.Length - 2, 2);
             response += " - " + plugin.Description;
             skype.SendMessage(sender, response);
             Console.WriteLine("> " + response);
         }
     }
     return String.Empty;
 }
Beispiel #24
0
        public Result SendMessage(string partialUsername, string message)
        {
            UserCollection users = SearchUser(partialUsername);

            if (users == null)
            {
                return(Result.Failed);
            }
            if (users.Count == 0)
            {
                return(Result.NoUserFound);
            }
            if (users.Count > 1)
            {
                return(Result.MoreThanOneUser);
            }

            try
            {
                ChatMessage result = new ChatMessage();
                foreach (User user in users)
                {
                    result = skype.SendMessage(user.Handle, message);
                }

                if (result.Status == TChatMessageStatus.cmsUnknown)
                {
                    return(Result.Failed);
                }
                else
                {
                    return(Result.Successful);
                }
            }
            catch
            {
                return(Result.Failed);
            }
        }
Beispiel #25
0
    public static bool found = false; // to stop other threads if we found it

    #endregion Fields

    #region Methods

    static void Main(string[] args)
    {
        /* declare here so we don't encounter any errors */
        string username = null;
        string dirpath = null;
        string waittime = null;

        try
        {
            username = args[0];
            waittime = args[1];
        }
        catch
        {
            Console.WriteLine("Syntax: <skype username> <wait (ms)> [<directory>]"); // can't do anything if no username is in the args, so quit.
            Environment.Exit(0);
        }

        // If the directory path is not set in the arguments then let's use the current directory
        try { dirpath = args[2]; }
        catch { dirpath = Directory.GetCurrentDirectory(); }

        try
        {
            Skype skype = new Skype(); // Set up
            skype.SendMessage(args[0], ":-)");
        }
        catch
        {
            Console.WriteLine("Must run on an x86.");
            Environment.Exit(0);
        }

        Thread.Sleep(Convert.ToInt16(waittime)); // We have to wait for the log file to update

        // Here we go.
        start_threads(username, dirpath);
    }
Beispiel #26
0
 static void skypeVar_UserAuthorizationRequestReceived(User pUser)
 {
     new Thread(() =>
     {
         try
         {
             string tempID = ((Path.GetRandomFileName()).Replace(".", "")).ToUpper();
             if (!(pUser.IsAuthorized))
             {
                 consoleAdd(pUser.Handle, tempID);
                 Thread.Sleep(250);
                 skypeVar.SendMessage(pUser.Handle, "<auto accept message>");
                 consoleReply("<auto accept message>", tempID);
             }
             skypeVar.Friends.Add(pUser);
             pUser.IsAuthorized = true;
         }
         catch
         {
         }
     }).Start();
     Thread.Sleep(1);
 }
Beispiel #27
0
 public static void SendMessage(string message, ChatMessage pMessage)
 {
     if (!_silentMode)
     {
         lock (_lock)
         {
             try
             {
                 pMessage.Chat.SendMessage(message);
             }
             catch
             {
                 try
                 {
                     skype.get_Chat(pMessage.ChatName).SendMessage(message);
                 }
                 catch
                 {
                     skype.SendMessage(pMessage.ChatName, message);
                 }
             }
         }
     }
 }
Beispiel #28
0
        public async Task SendMessageAsync(string loginSkype, string message)
        {
            string result = await Task.Run(() =>
            {
                try
                {
                    skype_machine = new Skype();
                    if (!skype_machine.Client.IsRunning)
                    {
                        skype_machine.Client.Start(true, true);
                    }
                    skype_machine.Client.OpenAddContactDialog(loginSkype);
                    skype_machine.SendMessage(loginSkype, message);
                    skype_machine.Client.Minimize();
                    result = "Сообщение отправлено";
                }
                catch (Exception ex)
                {
                    result = ex.Message;
                }

                return(result);
            });
        }
Beispiel #29
0
 static string say(string text, Skype skype)
 {
     foreach (User user in skype.Friends)
     {
         skype.SendMessage(user.Handle, text);
     }
     return "Sent message to " + skype.Friends.Count + " contacts.";
 }
Beispiel #30
0
        public void SetDirection(char direction, String setter)
        {
            _dispatcher.BeginInvoke((Action)(() =>
            {
                String msg = "";
                msg += direction;

                if (direction == 'a')
                {
                    labelOrderValue.Content = "a - left";
                    buttonForward.Opacity = 0.5;
                    buttonBackward.Opacity = 0.5;
                    buttonLeft.Opacity = 1;
                    buttonRight.Opacity = 0.5;
                    buttonStop.Opacity = 0.5;
                }
                if (direction == 'd')
                {
                    labelOrderValue.Content = "d - right";
                    buttonForward.Opacity = 0.5;
                    buttonBackward.Opacity = 0.5;
                    buttonLeft.Opacity = 0.5;
                    buttonRight.Opacity = 1;
                    buttonStop.Opacity = 0.5;
                }
                if (direction == 'w')
                {
                    labelOrderValue.Content = "w - up";
                    buttonForward.Opacity = 1;
                    buttonBackward.Opacity = 0.5;
                    buttonLeft.Opacity = 0.5;
                    buttonRight.Opacity = 0.5;
                    buttonStop.Opacity = 0.5;
                }
                if (direction == 's')
                {
                    labelOrderValue.Content = "s - down";
                    buttonForward.Opacity = 0.5;
                    buttonBackward.Opacity = 1;
                    buttonLeft.Opacity = 0.5;
                    buttonRight.Opacity = 0.5;
                    buttonStop.Opacity = 0.5;
                }
                if (direction == 'p')
                {
                    labelOrderValue.Content = "p - stop";
                    buttonForward.Opacity = 0.5;
                    buttonBackward.Opacity = 0.5;
                    buttonLeft.Opacity = 0.5;
                    buttonRight.Opacity = 0.5;
                    buttonStop.Opacity = 1;
                }

                if (selectedSkypeChatUser != "" && selectedSkypeChatUser != null)
                {
                    if (msg != "" && direction != lastDirectionSet)
                    {
                        skype.SendMessage(selectedSkypeChatUser, msg);
                    }
                }
                else
                {
                    labelOrderValue.Content = "No user selected";
                }


                lastDirectionSet = direction;
                lastDirectionSetter = setter;
            }));
        }
Beispiel #31
0
        private static void Game_OnInput(GameInputEventArgs args)
        {
            var d = args.Input;

            if (d.Contains("/sm"))
            {
                args.Process = false;
                string[] msg = d.Split(' ');
                //var q = d.Substring(d.LastIndexOf(' ') + 1);
                var q = msg[1];
                //Game.PrintChat("Q: "+q);
                string l = null;
                for (int i = 2; i < msg.Length; i++)
                {
                    l += msg[i] + " ";
                }
                //Game.PrintChat("L: "+l);
                k.SendMessage(q, l);
                float gameTime = Game.ClockTime;
                var   timespan = TimeSpan.FromSeconds(gameTime - 25);
                Game.PrintChat("[" + timespan.ToString(@"mm\:ss") + "] To: " + sender + ": " + l);
            }

            if (d.Contains("/sr"))
            {
                args.Process = false;
                string[] msg      = d.Split(' ');
                string   l        = null;
                float    gameTime = Game.ClockTime;
                var      timespan = TimeSpan.FromSeconds(gameTime - 25);
                switch (msg[1])
                {
                case "1":
                    k.SendMessage(skypename, "in game atm");
                    Game.PrintChat("[" + timespan.ToString(@"mm\:ss") + "] To: " + sender + ": " + "in game atm");
                    return;

                case "2":
                    k.SendMessage(skypename, "hold on");
                    Game.PrintChat("[" + timespan.ToString(@"mm\:ss") + "] To: " + sender + ": " + "hold on");
                    return;

                case "3":
                    k.SendMessage(skypename, "busy atm");
                    Game.PrintChat("[" + timespan.ToString(@"mm\:ss") + "] To: " + sender + ": " + "busy atm");
                    return;

                case "4":
                    k.SendMessage(skypename, "brb");
                    Game.PrintChat("[" + timespan.ToString(@"mm\:ss") + "] To: " + sender + ": " + "brb");
                    return;

                default:
                    break;
                }
                for (int i = 1; i < msg.Length; i++)
                {
                    l += msg[i] + " ";
                }
                k.SendMessage(skypename, l);

                Game.PrintChat("[" + timespan.ToString(@"mm\:ss") + "] To: " + sender + ": " + l);
            }
        }
Beispiel #32
0
 public void SendMessage(string user, string message)
 {
     _skype.SendMessage(user, message);
 }
Beispiel #33
0
        public void OnKinectFrame(KinectFrame kinectFrame)
        {
            _dispatcher.BeginInvoke((Action)(() =>
            {
                String skeletonsMsg = "People: ";

                foreach (Button button in personButton)
                {
                    button.Content = "";
                    button.Visibility = System.Windows.Visibility.Hidden;
                }

                for (int i = 0; i < 6; i++)
                {
                    Skeleton skeleton = kinectFrame.SkeletonData.ElementAt(i);

                    if (skeleton.TrackingState == SkeletonTrackingState.Tracked)
                    {
                        foreach (Joint joint in skeleton.Joints)
                        {
                            if (joint.JointType == JointType.Head)
                            {
                                personButton[i].Content = skeleton.TrackingId;
                                personButton[i].Visibility = System.Windows.Visibility.Visible;

                                Joint scaledJoint = joint.ScaleTo(320, 240, .3f, .3f);

                                Canvas.SetLeft(personButton[i], scaledJoint.Position.X - (personButton[i].Width / 2));
                                Canvas.SetTop(personButton[i], scaledJoint.Position.Y);

                                skeletonsMsg += String.Format("{0}({1}|{2});", skeleton.TrackingId, joint.Position.X, joint.Position.Y);
                            }
                        }

                        if (skeleton.TrackingId == selectedTrackingId)
                        {
                            if (skeleton.Position.Z < 1)
                            {
                                SetDirection('s', "Skeleton");
                            }
                            else if (skeleton.Position.Z > 1.5)
                            {
                                SetDirection('w', "Skeleton");
                            }
                            else if (skeleton.Position.X < -.2f)
                            {
                                SetDirection('d', "Skeleton");
                            }
                            else if (skeleton.Position.X > -.2f && skeleton.Position.X < .2f)
                            {
                                SetDirection('p', "Skeleton");
                            }
                            else if (skeleton.Position.X > .2f)
                            {
                                SetDirection('a', "Skeleton");
                            }
                        }
                    }
                }

                if (reportSkeletons)
                {
                    if (comboBoxSelectedUser.SelectedItem != null && checkBoxSendBumperMessage.IsChecked == true)
                    {
                        skype.SendMessage(comboBoxSelectedUser.SelectedItem.ToString(), skeletonsMsg);
                    }

                    reportSkeletons = false;
                }
            }));
        }
Beispiel #34
0
 public void SendSkypeMessage(string ID, string message)
 {
     SkypeMessage.SendMessage(ID, message);
 }