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 />

ViewerPostMessage<br />

Posts a Windows System Message to the specified project screen.<br />

Function Group Execution Windows Embedded Thin Client<br />

ViewerPostMessage Module Activity Asynchronous Supported Supported Supported<br />

Note: This function cannot be used with Tasks or in the Global Procedures script.<br />

Syntax<br />

ViewerPostMessage( strScrTitle, numMessage, numwParam, numlParam, optNumID )<br />

strScrTitle<br />

numMessage<br />

numwParam<br />

numlParam<br />

optNumID<br />

The name of the screen to which the message will be posted.<br />

The number of the Windows System Message to be posted.<br />

A numeric value or tag; additional message-specific information, which is passed to wParam of<br />

the Windows System Message.<br />

A numeric value or tag; additional message-specific information, which is passed to lParam of<br />

the Windows System Message.<br />

The specific instance number of the screen. (The ID is assigned when the screen is opened with<br />

the Open() function.) This is an optional parameter; the default ID is 0.<br />

Returned value<br />

This function returns no values.<br />

Notes<br />

This function emulates the PostMessage function in Microsoft Windows. For more information, including a<br />

complete list of available Windows System Messages, please consult Microsoft Developers Network.<br />

Examples<br />

Tag Name<br />

Expression<br />

ViewerPostMessage( "main", 16, 3, 1, 10 )<br />

// Sends message 16 to the "main" screen with ID 10.<br />

WinExec<br />

WinExec is a built-in scripting function that executes a Windows command as if it was entered at the<br />

command prompt.<br />

Function Group Execution Windows Embedded Thin Client<br />

WinExec Module Activity Asynchronous Supported Supported (see notes) Supported<br />

Page 622<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!