I am new to this program and so far enjoying it, but I need help when I need to ask a else if statement.
Basically, I'm searching for the first image. If the first image is not there "do this". If the first image is there, search for the second image. If the second image is not there "do this" and if it is there "do this".
Here is my current code:
Code: Select all
FindImagePos>%BMP_DIR%\image_3.bmp,SCREEN,0.7,1,XArr,YArr,NumFound1,CCOEFF
FindImagePos>%BMP_DIR%\image_19.bmp,SCREEN,0.7,1,XArr,YArr,NumFound2,CCOEFF
IfNot>NumFound1>0
HoldKey>s,100,0,1
else
HoldKey>space,100,0,1
Wait 2
If>NumFound2>0
HoldKey>d,100,0,1
Wait 2
HoldKey>space,100,0,1
else
Wait 4
HoldKey>space,200,0,1
Endif
Endif
I know the code is poorly optimized and there is a much better way to do this. I'm a very poor coder so with that in mind, any help is very much appreciated. Thanks!
