system.vision.showTouchscreenKeyboard
This function replaces system.gui.showTouchscreenKeyboard. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility. Only the system.vision variations will appear in the Script Editor's autocomplete popup.
This function is used in Python Scripting.
Description​
Displays a modal on-screen keyboard, allowing for arbitrary text entry using the mouse, or a finger on a touchscreen monitor. Returns the text that the user entered.
This function is available on secondary desktops via the system.vision.desktop function. See the Multi-Monitor Clients page for more details on secondary desktops.
Client Permission Restrictions​
This scripting function has no Client Permission restrictions.
Syntax​
system.vision.showTouchscreenKeyboard(initialText, [fontSize], [passwordMode])
Parameters​
Type | Parameter | Description |
---|---|---|
String | initialText | The text to start the on-screen keyboard with. |
Integer | fontSize | The font size to display in the keyboard. [optional] |
Boolean | passwordMode | A True value will activate password mode, where the text entered is not echoed back in cleartext. [optional] |
Returns​
String - The text that was entered in the on-screen keyboard.
Scope​
Vision Client
Code Examples​
# This function is a holdover for backwards compatibility. Input components now know when the client
# is in Touch Screen mode and respond accordingly.
# This would go in the MouseClicked or MousePressed action of a Text Field or similar component.
if system.vision.isTouchscreenMode():
event.source.text = system.vision.showTouchscreenKeyboard(event.source.text)