← Back to team overview

sikuli-driver team mailing list archive

[Question #229398]: [1.0] Text search currently switched off and Region outside any screen (updating from Sikuli X r930 to Sikuli API win32)

 

New question #229398 on Sikuli:
https://answers.launchpad.net/sikuli/+question/229398

Hi all,

Currently i have the script (Sikuli X r930):

  reg = App('Microsoft Word').window(0)

  #Look for text
  reg.wait('Home')

But when run in Sikuli API 1.0 i have error:

  [error] Region.find(text): text search is currently switched off
  [error] script [ TestText ] stopped with error in line 6
  [error] FindFailed ( Text search currently switched off )

Doing some tests in IDE i changed the option Preferences\"Allow searching for text", and now i don't get that error, but i don't know how enable it in Sikuli API.

The other problem: enabled text search and Making more tests in the IDE, I have this error when the window is maximized:

  [debug] getWindow: java.awt.Rectangle[x=-4,y=-4,width=1448,height=908]
  [error] Region (1448, 908) outside any screen - subsequent actions might not work as expected
  [error] script [ TestText ] stopped with error in line 6
  [error] FindFailed ( null )

What can I do for?
  1. Enable "Allow searching for text" in Sikuli API.
  2. Find text when the window is maximized.

Thanks in advance

Ricardo Cardona R

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.