Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

RemoteControl.InsertText

Sends text to active window/control.

Component Version macOS Windows Linux Server iOS SDK
RemoteControl 12.4 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "RemoteControl.InsertText"; Text { ; SendKeys } )   More

Parameters

Parameter Description Example Flags
Text The text to send. "Hello"
SendKeys Pass 1 to send key events on macOS instead of inserting into textfield.
Default is 0.
1 Optional

Result

Returns OK or error.

Description

Sends text to active window/control.
Uses the API to enter unicode characters, so this should work for all text fields in FileMaker.

May work from a script, but you can use our schedule functions to delay delivery by running the function after a delay.

Examples

Send text with delay:

Set Variable [ $r ; Value: MBS( "Schedule.EvaluateAfterDelay"; 1; "MBS(\"RemoteControl.InsertText\"; \"Hello\")" ) ]
# script ends after this

See also

Release notes

Blog Entries

This function checks for a license.

Created 23th August 2022, last changed 26th August 2022


RemoteControl.HideCursor - RemoteControl.MouseButtons