I am currently doing a code where I need to screenshot one area of the screen then wait for a few seconds and the screenshot that again then compare them.
I found this one
then I rewrote this to fit in my code
set CaptureArea to (331,154, 892, 505) captureScreen "originalImage", CaptureArea Wait 30 captureScreen "afterImage", CaptureArea if file "originalImage" as data is not equal to file "afterImage" as data then logSuccess "The Image updated/changed" Else logError "The Image did not updated/changed" End If
I wanted to check if the certain area i was having to screenshot is updating/changing but I am always getting the message that it did not update but when I compare the images manually, it turns out that the image is updated/changed
really need this code to work
Thanks in advance