sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #53814
Re: [Question #687520]: Exists
Question #687520 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/687520
Status: Open => Answered
RaiMan proposed the following answer:
I made this test on my MacBook Pro Retina macOS 10.15.2:
# where the image copies are stored
copiedImages = "/Users/raimundhocke/IdeaProjects/_SUPPORT/macImg/"
print "*** original (IDE capture button)"
find("img.png").highlight(1)
print "*** internally copied with saveAs"
find(copiedImages + "imgSxCpy").highlight(1)
print "*** copied in Finder: context menu copy & paste"
find(copiedImages + "imgCpy").highlight(1)
print "*** copied in Finder: keys copy & paste"
find(copiedImages + "imgCpPa").highlight(1)
print "Preview: Duplicate + Save"
find( copiedImages + "imgCopy").highlight(1)
With the following message log:
*** original
[log] highlight M[254,62 160x28]On(0) S 10000 for 1.0 secs
*** internally copied with saveAs
[log] highlight M[254,62 160x28]On(0) S 10000 for 1.0 secs
*** copied in Finder: context menu copy & paste
[log] highlight M[254,62 160x28]On(0) S 10000 for 1.0 secs
*** copied in Finder: keys copy & paste
[log] highlight M[254,62 160x28]On(0) S 10000 for 1.0 secs
Preview: Duplicate + Save
[log] highlight M[254,62 160x28]On(0) S 10000 for 1.0 secs
which proves, that all image variants are found with match score 100% -
hence all images have exactly the same pixels
be aware: for the images stored outside the script I left out the .png
ending to avoid the error messages on script load about not found images
on imagepath.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.