public EveTask(EveEntry _entry, refresh r) { _ref = r; entry = _entry; this.handler = entry.handler; this.startPoint = new Point(0, 0); this.endPoint = new Point(0, 0); this.period = 300; this.timeLeft = 0; EveHookProcedure = new HookProc(MyCallbackFunction); }
public void update() { IntPtr tempHandle = IntPtr.Zero; tempHandle = FindWindow("triuiScreen", null); if (tempHandle == IntPtr.Zero) { MessageBox.Show("Eve's not running"); return; } int i = 0; while (tempHandle != IntPtr.Zero) { if (eveHandlers.Length == i) { Array.Resize(ref eveHandlers, (i + 1)); } eveHandlers[i] = new EveEntry(tempHandle); tempHandle = FindWindowEx(IntPtr.Zero, tempHandle, "triuiScreen", null); i++; } Console.WriteLine(eveHandlers.Length); //int x = 455; //int y = 145; //while (true) //{ // SetForegroundWindow(eveHandle); // System.Threading.Thread.Sleep(100); // mouse_rclick(990, 250); // System.Threading.Thread.Sleep(100); // mouse_rclick(1030, 337); // System.Threading.Thread.Sleep(419000); //} ////System.Threading.Thread.Sleep(100); ////mouse_click(1713, 674); //SendKeys.SendWait("^s"); ////for (int i = 0; i < 100; i++) ////{ //// System.Threading.Thread.Sleep(100); //// mouse_click((i%2==0?455:545), y); ////} }