Last active
October 3, 2020 00:01
-
-
Save akrnmd/be86c200e4f23ebe684c829f02d3181c to your computer and use it in GitHub Desktop.
Capture and compare two images. #SenseTalk #eggplant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set CaptureArea to (0, 0, 100, 100) -- Set Capture Area. | |
CaptureScreen "C:\Users\[UserName]\Image-Before.png", CaptureArea | |
//Your Actions | |
CaptureScreen "C:\Users\[UserName]\Image-After.png", CaptureArea | |
if file "C:\Users\[UserName]\Image-Before.png" as data is equal to file "C:\Users\[UserName]\Image-After.png" as data then | |
log "Image-Before and Image-After are same images." | |
else | |
log "Image-Before and Image-After are different images." | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment