CODE:
int Image_0[1][1];
Image_0[0][0]=6273776;
int PosX_1[100],PosY_1[100];
int coof1=10;
if(findimage(1, #CoinG[0][0], 0, #PosX_1[1], #PosY_1[1],w.width*0.7, w.height*0.34, w.width*0.86, w.height*0.44 ,coof1,coof1,coof1,coof1,coof1,coof1,100,1, w)>0)
{
mousemove(PosX_1[1]+w.width*0.7,PosY_1[1]+w.height*0.34);
sleep(400);
}
Image_0[0][0]=6273776;
int PosX_1[100],PosY_1[100];
int coof1=10;
if(findimage(1, #CoinG[0][0], 0, #PosX_1[1], #PosY_1[1],w.width*0.7, w.height*0.34, w.width*0.86, w.height*0.44 ,coof1,coof1,coof1,coof1,coof1,coof1,100,1, w)>0)
{
mousemove(PosX_1[1]+w.width*0.7,PosY_1[1]+w.height*0.34);
sleep(400);
}
А Этот нет:
CODE:
int PosX_1[100],PosY_1[100];
int coof1=10;
if(findcolor(1, #PosX_1[1], #PosY_1[1], w.width*0.7, w.height*0.34, w.width*0.86, w.height*0.44, 6273776, coof1,coof1,coof1,coof1,coof1,coof1,w)>0)
{
mousemove(PosX_1[1]+w.width*0.7,PosY_1[1]+w.height*0.34);
sleep(400);
}
int PosX_1[100],PosY_1[100];
int coof1=10;
if(findcolor(1, #PosX_1[1], #PosY_1[1], w.width*0.7, w.height*0.34, w.width*0.86, w.height*0.44, 6273776, coof1,coof1,coof1,coof1,coof1,coof1,w)>0)
{
mousemove(PosX_1[1]+w.width*0.7,PosY_1[1]+w.height*0.34);
sleep(400);
}
Не работают разбросы по цветам для findcolor!!!