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

    Status: Open => Answered

Eugene S proposed the following answer:
Hi,

You get this error because, in your case, "activityNametext" is integer
and not an object. Please read carefully the documentation regarding
what "hover" method returns (http://doc.sikuli.org/region.html):

The number 1 if the mousepointer could be moved to the click point. A 0
(integer null) returned means that because of some reason, no move could
be performed (in case of PS may be not Found).

I am trying to understand what you are trying to achive. So if what you
want is to highlight the area on the rightside of the "activity", do:

activityRegion = Region(225,489,191,370)
activity = activityRegion.find("<pattern.png>).highlight(1) # Will find and 
highlight activity inside activityRegion
activity.right().highlight(1) #Will highlight everything to the right of 
"activity".


Cheers,
Eugene

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to