Method GetTextAI
Retrieves visible text from the object using an external Artificial Intelligence (AI) service. This process requires Internet connectivity and is subject to Copilot token limits.Usage
Function GetTextAI( Boolean Report [Optional] )
Parameters
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step.
Returns
Returns a result text string or an empty string if the text was not found. If there is no internet connectivity or if the Copilot service is out of tokens, it also returns an empty string.Example
VBScript
objectText = Application("Demo").View("DemoView").Object("DemoTextObject")GetTextAI(True)
JavaScript
var objectText = Application("Demo").View("DemoView").Object("DemoTextObject").GetText(true);