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:
if (findimage(1, #Image_1[0][0], -1, #PosX, #PosY, 0, 0, 1280, 992, 50, 50, 50, 50, 50, 50, 80, -1, w)==1)
{
mouse(LEFT, PosX+imagewidth(#Image_1[0][0])/2, PosY+imageheight(#Image_1[0][0])/2+50, w);
}
if (findimage(1, #Image_2[0][0], -1, #PosX, #PosY, 0, 0, 1280, 992, 50, 50, 50, 50, 50, 50, 80, -1, w)==1)
{
mouse(LEFT, PosX+imagewidth(#Image_2[0][0])/2, PosY+imageheight(#Image_2[0][0])/2+50, w);
}
if (findimage(1, #Image_3[0][0], -1, #PosX, #PosY, 0, 0, 1280, 992, 50, 50, 50, 50, 50, 50, 80, -1, w)==1)
{
mouse(LEFT, PosX+imagewidth(#Image_3[0][0])/2, PosY+imageheight(#Image_3[0][0])/2+50, w);
}
if(findimage(1, #Image_4[0][0], -1, #PosX, #PosY, 0, 0, 1280, 992, 50, 50, 50, 50, 50, 50, 80, -1, w)==1)
{
mouse(LEFT, PosX+imagewidth(#Image_4[0][0])/2, PosY+imageheight(#Image_4[0][0])/2, w);
}
f=if (findimage(1, #Image_5[0][0], -1, #PosX, #PosY, 0, 0, 1280, 992, w)==1)
{
sleep(1000);
mouse(LEFT, PosX+imagewidth(#Image_5[0][0])/2, PosY+imageheight(#Image_5[0][0])/2, w);
}
else: f=false;
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");
}
Как это всё красиво умеючи провернуть как Вы говорили? Ну про то что с findimage всё сразу запустить....Ну надеюсь Вы поняли