ACAT.Extensions.Default.FunctionalAgents.LaunchAppAgent.LaunchAppAgent.activateWindow C# (CSharp) Method

activateWindow() private method

Set focus to the specified window
private activateWindow ( IntPtr handle ) : void
handle System.IntPtr handle to the window
return void
        private void activateWindow(IntPtr handle)
        {
            if (handle != IntPtr.Zero)
            {
                User32Interop.SetFocus(handle);
                Thread.Sleep(1000);
                Windows.SetForegroundWindow(handle);
            }
        }