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); }
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(); }
public AutoSpoof(BnetPacketParser parser, DInputHook diHook) { this.diHook = diHook; parser.chatMessageHandler.Events[(int)ChatEventID.Whisper].Event += new ChatEventEvent.ChatEventHandler(OnWhisper); }