Skip to content

Write Clipboard

Write text content to the iOS device's system clipboard.

Interface Description

Interface Type

execShortcut

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID
directivestring'writeClipboard'
payloadstringText content to write to clipboard

Return Value

javascript
true  // Returns true on successful write

Basic Usage

javascript
// Write fixed text
await apiInvoke('execShortcut', {
    deviceId: 'P72578581E07',
    directive: 'writeClipboard',
    payload: 'Hello iClick!'
})
// Simulate paste (Command+V)
await apiInvoke('sendKey', {
    deviceId: 'P72578581E07',
    key: 'v',
    fnkey: 'command'
})

Cooperation: try.catch@foxmail.com