sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43433
Re: [Question #654227]: Use offset(Location(x, y)} but get wrong position some time
Question #654227 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/654227
Status: Answered => Solved
YO confirmed that the question is solved:
I've try and there is no bug for "mouseMove" by saving the mouse
Location.
sleep(1)
target = find(Pattern("1501664009243.png").similar(0.50)) #the link above
mouseMove(target)
sleep(0.3)
scene_offset = 125
mouseMove((- scene_offset*3), 0)
i = 0
scene_list = []
scene_list.append([])
scene_list[i] = Env.getMouseLocation ()
sleep(0.3)
for i in range(1,6) :
mouseMove(scene_offset,0)
sleep(0.3)
scene_list.append([])
scene_list[i] = Env.getMouseLocation ()
for j in scene_list:
mouseMove(j)
sleep(0.3)
but the code using offset(Location(x,y)) is so strange,
can I count it as a bug?
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.