10-31-2021, 06:51 PM
I'm running a single macro to check if any of the images from an array appear on the screen. The performance is much slower compared to running multiple macros, each macro assigned to a single image. It feels like running an array of images has a wait time.
How can I get the performance of running a macro scanning a single image?
Running a macro per image, fast
Running one macro, checking from a list of images, slow:
How can I get the performance of running a macro scanning a single image?
Running a macro per image, fast
rep
activateWindow
int w=win("My program" "UnityWndClass")
; stop macro if closed
err
break
scan "image:hE2706549" w 0 1|2|4|16|128 100
err
goto activateWindow
; image found, click
act w
lef
Running one macro, checking from a list of images, slow: