Exemple #1
0
        public static bool WindowDetect(Interactor intr, string windowExe, string flavor)
        {
            string detectionParam = string.Format("ahk_exe {0}", windowExe);
            var result = intr.EvaluateFunction("Win" + flavor, detectionParam);
            intr.Log(LogEntryType.Trace, "Interactions::Screen::WindowDetect{0}(): Win{0}({1}): '{2}'",
                flavor, detectionParam, result);

            if ((result.Trim() == "0x0") || (string.IsNullOrWhiteSpace(result))) {
                return false;
            } else {
                return true;
            }
        }
Exemple #2
0
        public static bool WindowDetect(Interactor intr, string windowExe, string flavor)
        {
            string detectionParam = string.Format("ahk_exe {0}", windowExe);
            var    result         = intr.EvaluateFunction("Win" + flavor, detectionParam);

            intr.Log(LogEntryType.Trace, "Interactions::Screen::WindowDetect{0}(): Win{0}({1}): '{2}'",
                     flavor, detectionParam, result);

            if ((result.Trim() == "0x0") || (string.IsNullOrWhiteSpace(result)))
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }