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

Returned value<br />

0 Viewer is not in focus.<br />

1 Viewer is in focus.<br />

Examples<br />

IsViewerInFocus()<br />

KeyPad<br />

Displays a Virtual Keyboard to prompt the runtime user to enter a tag value.<br />

Function Group Execution Windows Embedded Thin Client<br />

KeyPad Module Activity Asynchronous Supported Supported Supported<br />

Syntax<br />

KeyPad( "strTagName", optStrKeyboardName, optNumIsPassword, optStrHint, optNumMin, optNumMax, optNu<br />

)<br />

strTagName<br />

The name of the tag to which the Virtual Keyboard will write.<br />

This name must be enclosed in quotes; if it is not, then the project will try to get the contents of<br />

the tag.<br />

optStrKeyboardName<br />

Type of Virtual Keyboard that will be launched (e.g., AlphaNumeric, EnhKeypad, or Keypad ). If<br />

this parameter is omitted, then the default Virtual Keyboard will be launched.<br />

optNumIsPassword<br />

optStrHint<br />

If this parameter is set with any value different from 0 (zero), the characters typed in the Virtual<br />

Keyboard will appear as asterisks ("*"). This option is useful when the user is typing a password.<br />

The value specified for this parameter is displayed in the title bar of the Virtual Keyboard<br />

window, if the Show Hint option is selected in the project settings.<br />

optNumMin, optNumMax<br />

optNumESign<br />

Minimum and maximum numeric values for the Tag when using the Keypad keyboard type, if<br />

the Show MIN/MAX fields option is selected in the project settings. (These values are ignored for all<br />

other keyboard types.) These parameters are optional, but you must specify both to have them<br />

implemented. If you specify only one parameter — for example, Min but not Max — then it will<br />

be ignored.<br />

If this parameter is set with any value different from 0 (zero), then the user will be prompted to<br />

log on to complete the input and the action will be noted in the log.<br />

optStrConfirmation<br />

The value specified for this parameter is displayed in a confirmation dialog that the user must<br />

acknowledge to complete the input.<br />

Page 604<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!