Whenever I try to use the FindImagePos function, it's always returning number found as 0 even though the captured BMP block is staring at me on the screen.
The exact same macros work when logged onto my local windows 7 machine, natively.
Really not sure whats causing this behavior? Maybe because the VM doesnt "draw" things as it should?
I tried increasing the tolerance to no avail.
I ended up finding a workaround it seems, doing a screencapture to a BMP, then doing a findimagepos on the BMP. NumFound then came up as 1.
The code for that is as follows:
Code: Select all
ScreenCapture>5,5,150,150>c:\mybmp.bmp
FindImagePos>c:\testimage.bmp,c:\mybmp.bmp,5,1,Xarr,Yarr,NumFound
MDL>%NumFound%