February 17, 2020

WaitScreenImage now returns X and Y image position.

Filed under: General — Dorian @ 1:53 pm

Did you know that as of Version 14.4.05, WaitScreenImage can also return x and y mouse coordinates of the found image?

The optional arguments x and y can be used to specify return variables which will store the position of the image found. This is useful as it means as well as waiting for a screen image you can interact with it without using a subsequent FindImagePos call.

Here’s a usage example :

//with position returned
WaitScreenImage>%SCRIPT_DIR%\save.bmp,0.7,CCOEFF,XArr,YArr
MouseMove>XArr_0,YArr_0