The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scan image in macro then compare to current screen
#1
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)