omron — AppActivate

Appendix: Built-in Scripting Language Module Activity functions These functions are used to manage a project's various runtime modules — such as background tasks, the data server, and the project viewer — as well as those modules' interactions with the operating system. AppActivate AppActivate is a built-in scripting function that activates (i.e., brings to the front) another application window that is already open. Syntax AppActivate( strAppTitle { | , { optNumActiv | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 }{ | , optNumTimeout } } ) strAppTitle The full title (as shown in the title bar) of the application window. optNumActiv Controls how the specified window is to be activated:

Page 500 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client AppActivate Module Activity Asynchronous Supported Supported Supported Value Command Description 0 SW HIDE _ Hides the currently active window and then activates the specified window. 1 SW SHOWNORMAL _ Activates and displays the specified window. If the window is minimized or maximized, then it is restored to its original size and position. You should use this command when displaying a window for the first time. 2 SW SHOWMINIMIZED _ Activates the specified window and then minimizes it. 3 SW SHOWMAXIMIZED _ Activates the specified window and then maximizes it.

4 SW SHOWNOACTIVATE _ Displays the specified window, but does not activate it. If the window is minimized or maximized, then it is restored to its original size and position. 5 SW SHOW _ Activates and displays the specified window in its current size and position. This is similar to SW SHOWNORMAL except _ that if the window is minimized or maximized, then it remains in that state. 6 SW MINIMIZE _ Minimizes the specified window and then activates the next open window. 7 SW SHOWMINNOACTIVATE _ Displays the specified window as a minimized window, but does not activate it. 8 SW SHOWNA _ Displays the specified window in its current size and position, but does not activate it.

This is similar to SW SHOWNOACTIVATE _ except that if the window is