Пример #1
0
        private void analyzehwnd()
        {
            analyzencour = 0;
            analyzfini   = false;
            hwnd         = new IntPtr[botnumber];
            pid          = new IntPtr[botnumber];
            //HotKeyModifier HKM =
            HKMDB ConsoleHK = SomeSettings.UserHotkey[0] as HKMDB;

            sendtext("->Entering windows handle configuration", ConsoleLvl.Medium);
            sendtext("Click on the WoW window of the character asked then press " + ConsoleHK.KeyToString());
            //   sendtext(ConsoleHK.MainKey().ToString() + "-" + ConsoleHK.Modifiers().ToString());
            SomeSettings.hkm.Register(ConsoleHK.MainKey(), (HotKeyModifier)ConsoleHK.Modifiers(), 1, new HotKeyEventHandler(analyzethwnd));
            sendtext("Main character: " + botHub.getClasse(analyzencour) + "...");
        }
Пример #2
0
        private void ClassicEtSemiStart()
        {
            foreach (Bot b in UserBots)
            {
                //Memory.InjectDllToWindow(b.Handle,
                //sendconsole("pid b:" + b.PID.ToString());
                Threadbot[b.ID] = new Thread(new ParameterizedThreadStart(this.MainThreadLoop));
                Threadbot[b.ID].Start(b.ID);
            }
            BotWatcher = new Thread(new ThreadStart(BotHelper.WatcherOoO));
            BotWatcher.Start();

            BotHealer = new Thread(new ThreadStart(BotHelper.WatchHealth));
            BotHealer.Start();

            BotCentralizer = new Thread(new ThreadStart(BotHelper.CentralizeOoO));
            BotCentralizer.Start();

            ActionToAllBot(new SAction(BotAction.FollowMain, followMainPriority), 1, false);

            HKMDB AttackMainHK = SomeSettings.UserHotkey[2] as HKMDB;
            HKMDB FollowMainHK = SomeSettings.UserHotkey[3] as HKMDB;
            HKMDB ChangeMainHK = SomeSettings.UserHotkey[1] as HKMDB;
            HKMDB GoToLocHK    = SomeSettings.UserHotkey[4] as HKMDB;
            HKMDB CamHackHK    = SomeSettings.UserHotkey[5] as HKMDB;
            HKMDB AddCamHK     = SomeSettings.UserHotkey[6] as HKMDB;
            HKMDB LowCamHK     = SomeSettings.UserHotkey[7] as HKMDB;

            MxBots.Hook.StartMouseHook();

            SomeSettings.hkm.Register(AttackMainHK.MainKey(), (HotKeyModifier)AttackMainHK.Modifiers(), 1, new HotKeyEventHandler(AttackMainTarget));
            SomeSettings.hkm.Register(FollowMainHK.MainKey(), (HotKeyModifier)FollowMainHK.Modifiers(), 2, new HotKeyEventHandler(SwitchFollow));
            SomeSettings.hkm.Register(ChangeMainHK.MainKey(), (HotKeyModifier)ChangeMainHK.Modifiers(), 3, new HotKeyEventHandler(ChangeMainPress));
            SomeSettings.hkm.Register(GoToLocHK.MainKey(), (HotKeyModifier)GoToLocHK.Modifiers(), 4, new HotKeyEventHandler(war3));
            SomeSettings.hkm.Register(CamHackHK.MainKey(), (HotKeyModifier)CamHackHK.Modifiers(), 5, new HotKeyEventHandler(switchCameraHack));
            SomeSettings.hkm.Register(AddCamHK.MainKey(), (HotKeyModifier)AddCamHK.Modifiers(), 6, new HotKeyEventHandler(addCam));
            SomeSettings.hkm.Register(LowCamHK.MainKey(), (HotKeyModifier)LowCamHK.Modifiers(), 7, new HotKeyEventHandler(lowCam));
        }