| ZennoLab.Emulation Assembly > ZennoLab.Emulation Namespace > Emulator Class : IsWindowExists Method |
Type: System.String !
The header of the window.
Type: System.String !
The header of the window.
Type: System.Boolean
The answer with information about the window existence. If current window exists, this answer is "true"; otherwise false.
// activate the window just show it if (Emulator.IsWindowExists("First window")) { string result = Emulator.ActiveWindow("First window"); // if was not any errors if (result == "ok" && !Emulator.ErrorDetected) return "Window activated"; } return "Fail in activation window";
// activate the first window just show it if (ZennoLab\Emulation\Emulator::IsWindowExists("First window")) { $result = ZennoLab\Emulation\Emulator::ActiveWindow("First window"); // if was not any errors if ($result == "ok" && !ZennoLab\Emulation\Emulator::ErrorDetected) return "Window activated"; } else return "Fail: The first window";
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven