>>device.sendAai({action:"function(testEcho)", testEcho:`
echo(This is a test to echo in different types);
echo(true);
echo(1000);
echo(3.14159);
echo({a:1, b:{x:1, y:'string'}, c:[100, 200, 300]});
getFuncRetval()`})
{retval: true}
>>device.sendAai({action:"testEcho"})
{retval: [{retval: 'This is a test to echo in different types'},{retval: true},{retval: 1000},{retval: 3.14159},{retval: {a: 1, b: {x: 1, y: 'string'}, c: [100,200,300]}}]}
>>device.sendAai({query:"C:.SeekBar"}).retval.forEach(
x => {
var max = device.sendAai({elements:[x], action:"getProgress"}).retval.max;
device.sendAai({elements:[x], action:`setProgress(${max/2})`});
}
)
在设备上复制该文字后,getClipData 在 retval 中返回 HTML,在 text 中返回纯文本。
复制的格式化文字。
>>device.sendAai({action:"getClipData"})
{retval: '<p><b>Copying formatted text between Android and Windows.</b></p><p>•	Node(<i>getTextFormats</i>) or clipboard(<i>getClipData</i>)<br>
•	plain text or formatted HTML<br>
•	Copy from here, paste on box below</p>', text: 'Copying formatted text between Android and Windows.
•Node(getTextFormats) or clipboard(getClipData)
•plain text or formatted HTML
•Copy from here, paste on box below', type: 'html'}