RunTask.WriteInputText
----------------------

Writes text to the input buffer for the app.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RunTask](component_RunTask.md) | [4.1](newinversion41.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [Shell](component_Shell.md) functions instead.

MBS( "RunTask.WriteInputText"; Text { ; Encoding } ) 

**MBS**( **"RunTask.WriteInputText";** /\* Writes text to the input buffer for the app. \*/  
**$Text**; /\* The text to put in the buffer.e.g. "Hello World" \*/   
**$Encoding**) /\* Optional; The text encoding for text parameter.   
Default is native.e.g. "UTF-8" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Text | The text to put in the buffer. | "Hello World" |  |
| Encoding | The text encoding for text parameter.    Default is native.   Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the [FAQ](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | "UTF-8" | Optional |

### Result

Returns OK.

### Description

Writes text to the input buffer for the app.  
### Example Databases

- [Shell/RunTask/RunTask with read and write on Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Shell/RunTask/RunTask%20with%20read%20and%20write%20on%20Mac.shtml#3ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 13th June 2020

  
[RunTask.Wait](RunTaskWait.md) - [SNMP.Get](SNMPGet.md)

[HTML Version](RunTaskWriteInputText.shtml)