omron — WinExec

Appendix: Built-in Scripting Language Note: The StartTask( "Driver" ) function starts all drivers configured in the project. To start a specific driver, you must use the WinExec() function. ViewerPostMessage Posts a Windows System Message to the specified project screen. Note: This function cannot be used with Tasks or in the Global Procedures script. Syntax ViewerPostMessage( strScrTitle , numMessage , numwParam , numlParam , optNumID ) strScrTitle numMessage The name of the screen to which the message will be posted. The number of the Windows System Message to be posted.

numwParam A numeric value or tag; additional message-specific information, which is passed to wParam of the Windows System Message. numlParam A numeric value or tag; additional message-specific information, which is passed to lParam of the Windows System Message. optNumID The specific instance number of the screen. (The ID is assigned when the screen is opened with the Open() function.) This is an optional parameter; the default ID is 0. Returned value This function returns no values. Notes This function emulates the PostMessage function in Microsoft Windows. For more information, including a complete list of available Windows System Messages, please consult Microsoft Developers Network .

Examples WinExec WinExec is a built-in scripting function that executes a Windows command as if it was entered at the command prompt. Syntax WinExec( strCommand { | , { optNumState | 0 | 1 | 2 | 3 | 4 | 7 }{ | , { optNumSync | 0 | 1 } ," optTagReturnOrHandle " } } ) strCommand Page 518 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client ViewerPostMes saMgoedule Activity Asynchronous Supported Supported Supported Tag Name Expression ViewerPostMessage( "main", 16, 3, 1, 10 ) // Sends message 16 to the "main" screen with ID 10. Function Group Execution Windows Embedded Thin Client WinExec Module Activity Asynchronous Supported Supported (see notes) Supported