Exemplo n.º 1
0
        public void GoSwitch()
        {
            int a = -1, b = -1;

            Consts.KEY_CODE.TryGetValue("Tab", out a);
            Consts.KEY_VALUE.TryGetValue("Tab", out b);
            ProcessHandler.SendKey(a, b);
            Thread.Sleep(100);
        }
Exemplo n.º 2
0
 public void GoAttack()
 {
     if (cfg.monAlive)
     {
         int a = -1, b = -1;
         Consts.KEY_CODE.TryGetValue("1", out a);
         Consts.KEY_VALUE.TryGetValue("1", out b);
         ProcessHandler.SendKey(a, b);
         Thread.Sleep(100);
     }
 }
Exemplo n.º 3
0
        private void Go()
        {
            ProcessHandler.AwakeWnd(true);
            Thread.Sleep(800);
            Thread t = new Thread(CheckALL);

            t.Start();
            while (cfg.state)
            {
                //ProcessHandler.SendKey(cfg.a);
                GoAttack();
                GoPick();
                //Thread.Sleep(1000);
            }
            ProcessHandler.AwakeWnd(false);
        }
Exemplo n.º 4
0
        public void CheckALL()
        {
            ImgTask imk = null;

            imk += MatchHealth;
            imk += MatchMonster;
            while (cfg.state)
            {
                Bitmap bt = ProcessHandler.GetWindowImg();
                imk(bt);
                bt.Dispose();
                if (!cfg.monAlive)
                {
                    GoSwitch();
                }
                //mainForm.uPL(cfg.monAlive.ToString());
                Thread.Sleep(500);
            }
        }