777J0KeR777 пишет:
win w=window ("Forge of Empires - Mozilla Firefox", "MozillaWindowClass", -1);
int Image_1[25][25];
int Image_2[16][19];
int color, xe,ye;
getdisplay(color, xe, ye);
loadimage (#Image_1[0][0], "J:\kibor\Íîâàÿ ïàïêà\money2.bmp");
loadimage (#Image_2[0][0], "J:\kibor\Íîâàÿ ïàïêà\çàêðûòü.bmp");
int PosX;int PosY;
tt:
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);
}
f=if (findimage(1, #Image_2[0][0], -1, #PosX, #PosY, 0, 0, 1280, 992, w)==1)
{
mouse(LEFT, PosX+imagewidth(#Image_2[0][0])/2, PosY+imageheight(#Image_2[0][0])/2, w);
}
else: f=false;
visualwindow (0, 0, 0, 1280, 992, 1280, 1024, 100, w);
transparency (-1, w);
goto tt;
int Image_1[25][25];
int Image_2[16][19];
int color, xe,ye;
getdisplay(color, xe, ye);
loadimage (#Image_1[0][0], "J:\kibor\Íîâàÿ ïàïêà\money2.bmp");
loadimage (#Image_2[0][0], "J:\kibor\Íîâàÿ ïàïêà\çàêðûòü.bmp");
int PosX;int PosY;
tt:
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);
}
f=if (findimage(1, #Image_2[0][0], -1, #PosX, #PosY, 0, 0, 1280, 992, w)==1)
{
mouse(LEFT, PosX+imagewidth(#Image_2[0][0])/2, PosY+imageheight(#Image_2[0][0])/2, w);
}
else: f=false;
visualwindow (0, 0, 0, 1280, 992, 1280, 1024, 100, w);
transparency (-1, w);
goto tt;
ошибки красное.
не юзается в кибор false