My actually script:
Code: Select all
//Find
FindImagePos>%BMP_DIR%\image_3.bmp,SCREEN,40,1,XArr,YArr,NumFound
FindImagePos>%BMP_DIR%\image_4.bmp,SCREEN,40,1,XArr,YArr,NumFound
FindImagePos>%BMP_DIR%\image_5.bmp,SCREEN,40,1,XArr,YArr,NumFound
FindImagePos>%BMP_DIR%\image_6.bmp,SCREEN,40,1,XArr,YArr,NumFound
If>NumFound>0
PlayWav>C:\Users\Music\disconnect_x.wav
wait>1
Endif
Image detection dont work with .png files so i cant remove the background to make the macro search only the "swords".
It detecting 50% of time, but like i said, if the background or zoom change too much it fails, how can i improve the detection?