Cannot run the 'Hello World' example on windows 7

Asked by shabs

I was running an example on http://doc.sikuli.org/tutorials/helloworld/helloworld-win.html and I get the following error. I'm on Windows 7. Resolution 1920x1080

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

I understood from some other posts that "maximized application windows are maxcimized in a way, that the window frame is put outside the physical screen.
This leads to a "negative" (x,y) point for the top left corner of the region returned by App().window() and hence to the reported error: Region outside any screen."

How can I modify this example so it can run?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
shabs
Solved:
Last query:
Last reply:
Revision history for this message
shabs (sbk-555) said :
#1

I then tried File->Preferences->more options and have checked 'allow searching for text'. It then complains about missing libraries(?)
[error] TextRecognizer: init: tessdata folder not found at C:/Sikuli/libs/
[error] Region.find(text): text search is now switched off
[error] script [ *Untitled ] stopped with error in line 1
[error] FindFailed ( Text search currently switched off )

While installing I had selected option 1 and option 6

Revision history for this message
Eugene S (shragovich) said :
#2
Revision history for this message
shabs (sbk-555) said :
#3

Thanks Eugene, but your reply does not apply to the problem I believe. I am not searching for text. I also tried a fresh copy of the latest setup.jar but that has not helped either

Revision history for this message
shabs (sbk-555) said :
#4