示例#1
0
        public static bool IsValidAutoTypeWindow(IntPtr hWindow, bool bBeepIfNot)
        {
            bool bValid = ((hWindow != Program.MainForm.Handle) &&
                           !GlobalWindowManager.HasWindow(hWindow));

            if (!bValid && bBeepIfNot)
            {
                SystemSounds.Beep.Play();
            }

            return(bValid);
        }
示例#2
0
 internal static bool IsOwnWindow(IntPtr hWindow)
 {
     return((hWindow == Program.MainForm.Handle) ||
            GlobalWindowManager.HasWindow(hWindow));
 }
示例#3
0
 internal static bool IsOwnWindow(IntPtr hWindow)
 {
     return((hWindow == Program.GetSafeMainWindowHandle()) ||
            GlobalWindowManager.HasWindow(hWindow));
 }