sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08822
Re: [Question #188281]: Clicking on a point specified via x, y values
Question #188281 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188281
Status: Open => Answered
RaiMan proposed the following answer:
Sorry for always asking: already looked at the docs:
http://sikuli.org/docx/
It helps a lot to just take some minutes to scan through. Helps a lot to
see, what is possible at all.
your question:
- many region functions return pixels
getCenter(), getTopLeft(), ...
- this are Location objects
loc = Location(100, 100)
print "( %d, %d )"%(loc.x, loc.y) # ( 100, 100 )
- there are some features, that can be used to calculate Regions and Locations, that can be used with actions like click in turn
m = find(img)
loc = m.getCenter()
click(loc. right(100))
click(Location(15, 30)) # clicks the Apple menu on a Mac
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.