omron — SendKeyObject

Appendix: Built-in Scripting Language SendKeyObject Sends key event codes to objects in the currently displayed project screen. You can use this function to trigger Command animations on these objects. Syntax SendKeyObject( numEvent , strMainKey , numShift , numCtrl , numAlt , strTargetScreen , optNumID ) numEvent The event code for "On Down", "On While" or "On Up" of the Command animation, as follows: strMainKey The key to be sent to the screen. The following values are accepted: • "F1" … "F20" • "+ " • "-" • "/" • "*" • "HOME" • "END" • "INSERT" • "DELETE" • "DOWN" • "UP" • "LEFT" • "RIGHT" • "PAGEUP" • "PAGEDOWN" • "SPACE" • "RETURN" • "BACKSPACE" • "ESCAPE" • "A" …

"Z" numShift A numeric value or tag; whether to include Shift with the key ( 0 is no, 1 is yes). Page 514 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client SendKeyObject Module Activity Synchronous Supported Not supported Not supported Note: This function cannot be used with Tasks or in the Global Procedures script. 0 On Down 1 While Down 2 On Up Note: The "On While" event requires special attention. Each time the SendKeyObject() function is executed, IWS executes the expressions configured for the "On While" sheet (from the object's Command animation) just once.