08-06-2017, 12:40 AM
Is there a way to d the following:
1. scan the window for a small image on the screen, if found, save a bitmap of the area area the position of the found image. for example if the mouse position of the found image is 200, 200 then I would save a larger area near this position, for example, top:100 bottom:300 left:100 right:300.
2. next wait 1 or 2 secs and compare this bitmap image that was saved and scan the screen for that image. If found, ok, if not found loop unit it is found.
So step 2 is easy and I know how to manage that piece. But i'm not sure how to save the bitmap of the larger area in step one.
1. scan the window for a small image on the screen, if found, save a bitmap of the area area the position of the found image. for example if the mouse position of the found image is 200, 200 then I would save a larger area near this position, for example, top:100 bottom:300 left:100 right:300.
2. next wait 1 or 2 secs and compare this bitmap image that was saved and scan the screen for that image. If found, ok, if not found loop unit it is found.
So step 2 is easy and I know how to manage that piece. But i'm not sure how to save the bitmap of the larger area in step one.