Вот код
CODE:
int Image_2[61][23];loadimage (#Image_2[0][0], "C:\1\Image_war2.bmp");
int PosX_2[2];int PosY_2[2];
int k;
n:k= findimage(1, #Image_2[0][0], 3820376, #PosX_2[0], #PosY_2[0], 0, 0, 1920, 1040, -1);
IF (k=1){if (PosX_2[0]>0){mousemove(PosX_2[0]+586, PosY_2[0]+10);mouse (LEFT, PosX_2[0]+586, PosY_2[0]+10);}
pause (400);Goto n;}
int Image_0[31][23];loadimage (#Image_0[0][0], "C:\1\Image_2.bmp");
int PosX_0[512];int PosY_0[512];
int r;
ee:r= findimage(-1, #Image_0[0][0], 3820376, #PosX_0[0], #PosY_0[0], 0,0, 1920, 1040, -1);
IF (r<>0)
{mousemove(PosX_0[0]+550, PosY_0[0]+10);
mouse (LEFT, PosX_0[0]+550, PosY_0[0]+10);
pause(100);
Goto ee;}
int Image_2[61][23];loadimage (#Image_2[0][0], "C:\1\Image_war2.bmp");
int PosX_2[2];int PosY_2[2];
int k;
n:k= findimage(1, #Image_2[0][0], 3820376, #PosX_2[0], #PosY_2[0], 0, 0, 1920, 1040, -1);
IF (k=1){if (PosX_2[0]>0){mousemove(PosX_2[0]+586, PosY_2[0]+10);mouse (LEFT, PosX_2[0]+586, PosY_2[0]+10);}
pause (400);Goto n;}
int Image_0[31][23];loadimage (#Image_0[0][0], "C:\1\Image_2.bmp");
int PosX_0[512];int PosY_0[512];
int r;
ee:r= findimage(-1, #Image_0[0][0], 3820376, #PosX_0[0], #PosY_0[0], 0,0, 1920, 1040, -1);
IF (r<>0)
{mousemove(PosX_0[0]+550, PosY_0[0]+10);
mouse (LEFT, PosX_0[0]+550, PosY_0[0]+10);
pause(100);
Goto ee;}
(Добавление)
Пробовал вот так, все равно ничего не происходит
CODE:
int Image_2[61][23];loadimage (#Image_2[0][0], "C:\1\Image_war2.bmp");
int PosX_2=0;int PosY_2=0;
int k=0;
n:k= findimage(1, #Image_2[0][0], 3820376, #PosX_2, #PosY_2, 0, 0, 1920, 1040, -1);
IF (k==1)
{if (PosX_2>0){mousemove(PosX_2+586, PosY_2+10);mouse (LEFT, PosX_2+586, PosY_2+10);}
pause (400);Goto n;}
er:int Image_0[31][23];loadimage (#Image_0[0][0], "C:\1\Image_2.bmp");
int PosX_0;int PosY_0;
int r=0;
ee:r= findimage(1, #Image_0[0][0], 3820376, #PosX_0, #PosY_0, 0,0, 1920, 1040, -1);
IF (r==1)
{mousemove(PosX_0+550, PosY_0+10);
mouse (LEFT, PosX_0+550, PosY_0+10);
pause(100);
Goto ee;}
int PosX_2=0;int PosY_2=0;
int k=0;
n:k= findimage(1, #Image_2[0][0], 3820376, #PosX_2, #PosY_2, 0, 0, 1920, 1040, -1);
IF (k==1)
{if (PosX_2>0){mousemove(PosX_2+586, PosY_2+10);mouse (LEFT, PosX_2+586, PosY_2+10);}
pause (400);Goto n;}
er:int Image_0[31][23];loadimage (#Image_0[0][0], "C:\1\Image_2.bmp");
int PosX_0;int PosY_0;
int r=0;
ee:r= findimage(1, #Image_0[0][0], 3820376, #PosX_0, #PosY_0, 0,0, 1920, 1040, -1);
IF (r==1)
{mousemove(PosX_0+550, PosY_0+10);
mouse (LEFT, PosX_0+550, PosY_0+10);
pause(100);
Goto ee;}