//九天到票检测 public static bool OverCheck(ref int s) { IntPtr hwnd = HwndUtil.FindWindow("WTWindow", null); if (hwnd == IntPtr.Zero) { s++; } else { s = 0; } if (s > 5) { if (MonitorCore.GetTaskCore().IsAutoVote) { AutoVote.AddVoteProjectNameDropedTemp(); } ConfigCore.WriteOver(); return(true); } return(false); }
//HY到票检测 public static bool OverCheck() { IntPtr hwnd = HwndUtil.FindWindow("#32770", "信息:"); if (hwnd != IntPtr.Zero) { HwndUtil.closeHwnd(hwnd); ConfigCore.WriteOver(); return(true); } return(false); }
//JZ到票检测 public static bool OverCheck() { IntPtr hwnd = HwndUtil.FindWindow("TMessageForm", null); if (hwnd != IntPtr.Zero) { HwndUtil.closeHwnd(hwnd); ConfigCore.WriteOver(); return(true); } return(false); }
//MM到票检测 public static bool OverCheck() { IntPtr hwnd = HwndUtil.FindWindow(null, "投票软件提示"); if (hwnd != IntPtr.Zero) { if (MonitorCore.GetTaskCore().IsAutoVote) { AutoVote.AddVoteProjectNameDropedTemp(); } HwndUtil.closeHwnd(hwnd); ConfigCore.WriteOver(); return(true); } return(false); }