M-eux Test Reference Guide

MoObject GetOcrAreaText Operation (Windows Mobile/CE Test Automation)

Returns the text on the object as recognized by the OCR mechanism within the rectangle coördinates.

Syntax

Object.GetOcrAreaText(language,color,x,y,width,height)

Parameters

language

Required. A String value containing the language of your office installation. Supported languages are : "Chinese_Simplified", "Chinese_Traditional", "Czech", "Danish", "Dutch", "English", "Finnish", "French", "German", "Greek", "Hungarian", "Italian", "Japanese", "Korean", "Norwegian", "Polish", "Portuguese", "Russian", "Spanish", "Turkish".

color

Required. A String value true or false indicating wether the OCR should be performed against a screen representation with or without color.

x

Required. A String value containing the X coördinate of the rectangle relative torwards the GUI object.

y

Required. A String value containing the Y coördinate of the rectangle relative torwards the GUI object.

width

Required. A String value containing the width of the rectangle.

height

Required. A String value containing the height of the rectangle.

Return Value

A string containing the text displayed on the

screen as recognized by the OCR mechanism within the rectangle

coördinates.

Remarks

Returns the text on the object as recognized by the OCR mechanism within the rectangle coördinates.

-

In order to use the GetOcrAreaText method you need to have the

Microsoft Office document imaging component installed. See the

Installation guide for more details.

-

We don't support OCR for Run on device and Web

elements.

Examples

QTP Example:

MobileDevice("device").GetOcrAreaText("English","false","0","0","160","50")

  1. https://sbcnep.org/
  2. https://www.btsuk.org/
  3. https://www.jamosolutions.com/
  4. https://www.halifaxregional.org/
  5. https://www.chevallierlaspales.com/
  6. https://www.dome-restaurant.com/
  7. https://www.gc32worlds.com/
  8. https://www.thesamestreamchoir.com/
  9. https://www.maxhead.org/
  10. https://pmkisanstatus.org/
  11. https://www.saintspap.org/
  12. https://www.samuraisushihibachi.com/
  13. https://kraimoriebeach.com/
  14. https://recoverysociety.org/
  15. https://www.britishcouncilonline.org/
  1. PREDIKSI MACAU HARI INI