Home > FAQ > Useful Basic Tasks when writing a script > How can I delay script execution until the desired window appears on screen?

How can I delay script execution until the desired window appears on screen?

UseWindow function automatically delays script execution until the specified window appears on screen. If the window does not appear after 30 seconds, an error message is displayed. This 30 seconds timeout can be changed using #ActionTimeout system variable.

If you need to delay script execution until the desired window is not anymore displayed on screen, you can use a Pause on window, menu Insert/Synchronization/On window.