sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #50514
Re: [Question #678493]: How to take equal size screenshot
Question #678493 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678493
Status: Open => Answered
RaiMan proposed the following answer:
yes, I agree: this is a missing feature.
But you can solve it with a small script:
- make a shot of the enabled button with as little background as possible (imgE)
- then take care that the enabled button is visible on the screen
- find the button imgE on the screen and save the match
- make the button disabled
- take a shot with the saved match region and save it
something like that:
buttonReg = exists("imgE", 0)
popup("disable the button and click ok")
capture(buttonReg).getFile("/some/folder", "imgD")
the disabled button should now be saved at "/some/folder/imgD.png" and
can be copied to your .sikuli using the second button from the left
(insert image).
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.