Exemplo n.º 1
0
        public static void RegisterPlugins(BnetPacketParser parser)
        {
            Process wc3p = Process.GetProcessesByName("war3")[0];
            IntPtr wc3 = wc3p.MainWindowHandle;
            DInputHook diHook = new DInputHook(wc3);

            new THRGamesList(parser, diHook);
            new AutoSpoof(parser, diHook);
        }
Exemplo n.º 2
0
 public THRGamesList(BnetPacketParser parser, DInputHook diHook)
 {
     parser.chatMessageHandler.Events[(int)ChatEventID.Emote].Event +=
         new ChatEventEvent.ChatEventHandler(OnEmote);
     parser.chatMessageHandler.Events[(int)ChatEventID.Channel].Event +=
         new ChatEventEvent.ChatEventHandler(OnJoin);
     form = new THRGamesListForm();
     Thread formThread = new Thread(new ThreadStart(OpenForm));
     formThread.Start();
 }
Exemplo n.º 3
0
 public AutoSpoof(BnetPacketParser parser, DInputHook diHook)
 {
     this.diHook = diHook;
     parser.chatMessageHandler.Events[(int)ChatEventID.Whisper].Event +=
         new ChatEventEvent.ChatEventHandler(OnWhisper);
 }