18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Module Activity functions<br />

These functions are used to manage a project's various runtime modules — such as background tasks, the<br />

data server, and the project viewer — as well as those modules' interactions with the operating system.<br />

AppActivate<br />

AppActivate is a built-in scripting function that activates (i.e., brings to the front) another application<br />

window that is already open.<br />

Function Group Execution Windows Embedded Thin Client<br />

AppActivate Module Activity Asynchronous Supported Supported Supported<br />

Syntax<br />

AppActivate(strAppTitle{ | ,{ optNumActiv | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 }{ |<br />

,optNumTimeout } })<br />

strAppTitle<br />

optNumActiv<br />

The full title (as shown in the title bar) of the application window.<br />

Controls how the specified window is to be activated:<br />

Value Command Description<br />

0 SW_HIDE Hides the currently active window and then<br />

activates the specified window.<br />

1 SW_SHOWNORMAL Activates and displays the specified window.<br />

If the window is minimized or maximized,<br />

then it is restored to its original size and<br />

position.<br />

You should use this command when<br />

displaying a window for the first time.<br />

2 SW_SHOWMINIMIZED Activates the specified window and then<br />

minimizes it.<br />

3 SW_SHOWMAXIMIZED Activates the specified window and then<br />

maximizes it.<br />

4 SW_SHOWNOACTIVATE Displays the specified window, but does<br />

not activate it. If the window is minimized or<br />

maximized, then it is restored to its original<br />

size and position.<br />

5 SW_SHOW Activates and displays the specified window<br />

in its current size and position. This is similar<br />

to SW_SHOWNORMAL except that if the<br />

window is minimized or maximized, then it<br />

remains in that state.<br />

6 SW_MINIMIZE Minimizes the specified window and then<br />

activates the next open window.<br />

7 SW_SHOWMINNOACTIVATE Displays the specified window as a<br />

minimized window, but does not activate it.<br />

8 SW_SHOWNA Displays the specified window in<br />

its current size and position, but<br />

does not activate it. This is similar to<br />

SW_SHOWNOACTIVATE except that if<br />

the window is minimized or maximized, then<br />

it remains in that state.<br />

Page 596<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!