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); }
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); } }
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); }
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); } }