sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37098
Re: [Question #287964]: Help with SIMPLE moving pixels to the right of an image
Question #287964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/287964
Status: Open => Answered
RaiMan proposed the following answer:
find(sortedMatches[-1]).targetOffset(150,0)
since this is the only information you gave us, we have to guess:
sortedMatches probably contains a list of matches evaluated by findAll() before.
The docs would have told you, that find needs an image or image pattern as parameter.
Staying with the guess: you seem to use the last match in the match list, which is not allowed as parameter with find
That SikuliX-IDE silently dies in this case I take as a bug (internally the wrong parameter is detected and reported as error, but you cannot see that message (only when running from commandline), because SikuliX-IDE is terminated)
You could have seen that, when running your script from a commandline.
conclusion:
sortedMatches[-1].targetOffset(150,0)
would give you the wanted location and
click(sortedMatches[-1].targetOffset(150,0))
would do the wanted job
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.