Пример #1
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Loading Skype#...");
            k = new Skype();
            k.Attach(7, false);
            k.MessageStatus +=
                new _ISkypeEvents_MessageStatusEventHandler(skype_MessageStatus);
            Game.OnInput += Game_OnInput;
            CustomEvents.Game.OnGameLoad += Game_OnGameLoad;
            //k.SendMessage("shiver.x", "test");

        }
Пример #2
0
        private static void Main(string[] args)
        {
            Skype skype = new Skype("skypetestthing");
            Console.WriteLine(skype.Attach());
            Console.WriteLine(skype.GetVersion());

            skype.OnMessageStatusChanged += delegate(object sender, ChatMessage message, ChatMessageStatus status) {
                if(message.SenderHandle != "gozbot") {
                    //Console.WriteLine(e.Message.Body);
                    message.Chat.Send("Got your message: " + message.Body);
                }
            };

            skype.Listen();
        }