ClickOnTextOCR Wizard

This wizard specifies the parameters used by the ClickOnTextOCR statement.

ClickOnTextOCR statement clicks a text visible on screen, text as seen by the OCR engine. The zone where to look for the text is first captured as an internal bitmap file and then the OCR engine analyses the text.

The ClickOnTextOCR Wizard dialog box is called by double-clicking this statement in the Language window of WinTask Editor.

 

Select the OCR engine that the statement will use. The WinTask OCR engine is the one by default. If Microsoft Office 2003 or 2007 is installed on the PC, the MODI (Microsoft Office Document Imaging) OCR engine can be used too and gives usually better results. If the listbox Select the OCR engine does not show MODI, click the How to install MODI link.

Click Capture button. The wizard screen is minimized and the mouse pointer becomes a cross. Draw a rectangle around the text you want to click on. When the zone content is captured, the wizard screen comes to focus and the Window field displays the name of the window where is the zone to click.

The Text field displays the text as analysed by the OCR engine. You can redo the capture after having selected another OCR engine if you are not happy with the OCR results. Note that the MODI OCR engine gives better results when the zone is not just a word.

Select in Text field a couple of characters correctly recognized by the OCR engine and paste them in blank field below the Text field. Click Check button to verify that at replay the mouse will click at the place you want. Note that WinTask OCR engine can only click in the middle of the specified zone, so capture a small zone. MODI clicks exactly at the specified text, and you can capture a rectangle which is bigger than just the word to click on. MODI OCR engine gives better results when a bigger zone is OCRized.

Click Options button to display additional options:

Action can be Single or Double for a simple click or a double click. The default is Single.

Button can be Left or Right or Midlle for a left click, right click or middle click. The default is Left.

You can click near the specified text giving offset coordinates in X, Y fields.

Language field specifies the language used by the OCR engine. This option is valid only for the MODI OCR engine. Leave Default Language unless the window content is not using your Windows native language.

 

Click Paste into the script button to generate the ClickOnTextOCR line in the script. Note that a UseOCREngine line is generated too which tells which OCR engine will be used by the ClickOnTextOCR at replay.