This article covers the following platforms
MSFS 2024
MSFS 2020
ATS
FSX
Prepar3D
Use the Command API to copy text to the system clipboard.
copy_text()
Copy a string to the system clipboard.
SignatureTypeScript contract
copy_text(text: string): voidParameters
| Name | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to copy to the clipboard. |
ExampleJavaScript
this.$api.command.copy_text("Copied from Flow");Returns
voidNo direct return value is documented.