Hello,
When I use "CompareBitmap," it returns a result with the pixel difference between 0 and 100. Is it possible to make it determine the specific area of the screen that has changed accurately?
Or, by using WaitRectChange, is there a way to precisely retrieve the area that has changed?
CompareBitmap or WaitRectChanged
Moderators: Dorian (MJT support), JRL
- Dorian (MJT support)
- Automation Wizard
- Posts: 1369
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: CompareBitmap or WaitRectChanged
There isn't, specifically with those commands, but you could use a combination of GetRectCheckSum and WaitRectChanged.
My approach would probably be to split the target area into a grid of squares or rectangles, and perform an initial scan with GetRectCheckSum. Then use WaitRectChanged on the target area to detect a change. Then re-scan your grid with GetRectCheckSum and compare the first results with the initial ones to see which area has changed.
If desired you can then capture any changed areas with ScreenCapture.
My approach would probably be to split the target area into a grid of squares or rectangles, and perform an initial scan with GetRectCheckSum. Then use WaitRectChanged on the target area to detect a change. Then re-scan your grid with GetRectCheckSum and compare the first results with the initial ones to see which area has changed.
If desired you can then capture any changed areas with ScreenCapture.
Yes, we have a Custom Scripting Service. Message me or go here