CODE:
win w=window ("Forge of Empires - Mozilla Firefox", "MozillaWindowClass", -1);
int Image_1[19][10];
int Image_2[10][11];
int Image_3[8][10];
int Image_4[18][9];
int Image_5[16][19];
int color, xe,ye;
getdisplay(color, xe, ye);
int PosX;int PosY;
load_image();
gg:
int PosX[500];int PosY[500];
int kk=findimage (-1, #Image[0][0], -1, #PosX[0], #PosY[0], 0, 0, 1280, 992, 20, 20, 20, 20, 20, 20, 90, 1, w);
for(int i=0; i<kk; i++)
{
mouse(LEFT, PosX[i]+imagewidth(#Image_1[0][0])/2, PosY[i]+imageheight(#Image_1[0][0])/2+50, w);
mouse(LEFT, PosX[i]+imagewidth(#Image_2[0][0])/2, PosY[i]+imageheight(#Image_2[0][0])/2+50, w);
mouse(LEFT, PosX[i]+imagewidth(#Image_3[0][0])/2, PosY[i]+imageheight(#Image_3[0][0])/2+50, w);
mouse(LEFT, PosX[i]+imagewidth(#Image_4[0][0])/2, PosY[i]+imageheight(#Image_4[0][0])/2, w);
sleep(1000);
mouse(LEFT, PosX[i]+imagewidth(#Image_5[0][0])/2, PosY[i]+imageheight(#Image_5[0][0])/2, w);
}
goto gg;
function load_image()
{
loadimage (#Image_1[0][0], "J:\kibor\Íîâàÿ ïàïêà\money.bmp");
loadimage (#Image_2[0][0], "J:\kibor\Íîâàÿ ïàïêà\molot.bmp");
loadimage (#Image_3[0][0], "J:\kibor\Íîâàÿ ïàïêà\sleep.bmp");
loadimage (#Image_4[0][0], "J:\kibor\Íîâàÿ ïàïêà\5ì.bmp");
loadimage (#Image_5[0][0], "J:\kibor\Íîâàÿ ïàïêà\çàêðûòü.bmp");
}
int Image_1[19][10];
int Image_2[10][11];
int Image_3[8][10];
int Image_4[18][9];
int Image_5[16][19];
int color, xe,ye;
getdisplay(color, xe, ye);
int PosX;int PosY;
load_image();
gg:
int PosX[500];int PosY[500];
int kk=findimage (-1, #Image[0][0], -1, #PosX[0], #PosY[0], 0, 0, 1280, 992, 20, 20, 20, 20, 20, 20, 90, 1, w);
for(int i=0; i<kk; i++)
{
mouse(LEFT, PosX[i]+imagewidth(#Image_1[0][0])/2, PosY[i]+imageheight(#Image_1[0][0])/2+50, w);
mouse(LEFT, PosX[i]+imagewidth(#Image_2[0][0])/2, PosY[i]+imageheight(#Image_2[0][0])/2+50, w);
mouse(LEFT, PosX[i]+imagewidth(#Image_3[0][0])/2, PosY[i]+imageheight(#Image_3[0][0])/2+50, w);
mouse(LEFT, PosX[i]+imagewidth(#Image_4[0][0])/2, PosY[i]+imageheight(#Image_4[0][0])/2, w);
sleep(1000);
mouse(LEFT, PosX[i]+imagewidth(#Image_5[0][0])/2, PosY[i]+imageheight(#Image_5[0][0])/2, w);
}
goto gg;
function load_image()
{
loadimage (#Image_1[0][0], "J:\kibor\Íîâàÿ ïàïêà\money.bmp");
loadimage (#Image_2[0][0], "J:\kibor\Íîâàÿ ïàïêà\molot.bmp");
loadimage (#Image_3[0][0], "J:\kibor\Íîâàÿ ïàïêà\sleep.bmp");
loadimage (#Image_4[0][0], "J:\kibor\Íîâàÿ ïàïêà\5ì.bmp");
loadimage (#Image_5[0][0], "J:\kibor\Íîâàÿ ïàïêà\çàêðûòü.bmp");
}
Если бы понимал всё это...((