sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01142
[Question #144624]: define region to image
New question #144624 on Sikuli:
https://answers.launchpad.net/sikuli/+question/144624
Hi all,
i try define a region with a image, this is my code:
def define_region():
scr.hover(left-top corner of image)
xy1 = Env.getMouseLocation()
scr.hover(right-lower corner of image)
xy2 = Env.getMouseLocation()
x = xy1.x
y = xy1.y
w = xy2.x - xy1.x
h = xy2.y - xy1.y
return Region(x, y, w, h)
any way more simple?
thanks =)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.