sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #41745
Re: [Question #517317]: Remove specific item from screen captures
Question #517317 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/517317
Status: Open => Solved
Maurice Richard confirmed that the question is solved:
I got this figured out.
The trick is to find "Level 1" and prevent it from going in the original screenshot.
By taking a screenshot of it, and finding its X coordinate, you can remove it dynamically.
#Get the location of Level 1 for x,y calculations
level = find("Level_1.png")
#Get the selected image without the pesky "Level 1"
#Subtracting X from Level1 image from X of original image(332), we get the new length
captured_screen = capture(332,454,level.x-332,13)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.