← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #142447]: How to verify the text

 

Question #142447 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/142447

    Status: Open => Answered

RaiMan proposed the following answer:
To get a basic understanding, you have to look at the docs and examples.

Region.exists() will not run, that is clear, it was only a reference to
the related feature (look for something inside a region and not on the
whole screen)

taskbar/quicklaunch: to access it with Sikuli it has to be visible all the time.
Supposing, your taskbar has a hight of max 50 pixel, you can check the existence of a symbol (whose image you have captured before) and click it like this:

symbol = "filename-of-a-captured-symbol"
m = SCREEN.below(1).above(50).exists(symbol)
if m:
   click(m)
else:
   print symbol, "not found"

SCREEN.below(1).above(50) defines a new region at the bottom of the
screen of heigth 50 - your taskbar.

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