← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #216688]: How to get checkbox value from an application using Sikuli scripting

 

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

    Status: Open => Answered

Roman Podolyan proposed the following answer:
You doing it wrong.

regi = "TaskbarStart.png"

Here you just assign to regi a string value. Of course, Python thinks
it's a string, so gives you error "'str' object has no attribute
'exists'"

Read more about Region - http://doc.sikuli.org/region.html#creating-a-region-setting-and-getting-attributes , and construct regi like a Region. 
 
Something like that: 
 
back_region = Region(0,0,70,50)
hover("xyz.png")
mouseloc = Env.getMouseLocation()
back_region.moveTo(mouseloc)

You should define region with Region(x, y, w, h), and then you may move
it around to correct it's position.

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