i want to achieve a random positional clicks i have attached a sample script.
Code: Select all
///////////////////////////////////////////////////////////////////////////
Let>Names[1]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,0,XArr,YArr,NumFound,CCOEFF
Let>Names[2]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,1,XArr,YArr,NumFound,CCOEFF
Let>Names[3]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,2,XArr,YArr,NumFound,CCOEFF
Let>Names[4]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,3,XArr,YArr,NumFound,CCOEFF
Let>Names[5]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,4,XArr,YArr,NumFound,CCOEFF
Let>Names[6]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,5,XArr,YArr,NumFound,CCOEFF
Let>Names[7]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,6,XArr,YArr,NumFound,CCOEFF
Let>Names[8]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,7,XArr,YArr,NumFound,CCOEFF
Let>Names[9]=FindImagePos>%BMP_DIR%\image_1.bmp,SCREEN,0.7,8,XArr,YArr,NumFound,CCOEFF
Let>Names_Count=9
Random>9,rndnum
Let>rndnum=rndnum+1
Let>outname=Names[%rndnum%]
Message>outname
wait>5
CloseWindow>Macro Scheduler Message
wait>2
Let>FindImagePos=outname
//Find and Left Click Center of
FindImagePos>outname
If>NumFound>0
MouseMove>XArr_0,YArr_0
LClick
Endif