-----------------
CODE:
int PrivyazkaXY[42][42], Posk[20][20];
int P_X[1], P_Y[1], u_X[1], u_Y[1];
int xe, ye, color;
int S_X, S_Y, F_X, F_Y;
win wind=window ("StarConflict 1.0.13.64275", "game_main_window", -1)
getdisplay(color, xe, ye);
loadimage (#PrivyazkaXY[0][0], "C:\Users\Vlad\Documents\Image_1.bmp");
findimage(1, #PrivyazkaXY[0][0], PrivyazkaXY[0][0], #P_X[0], #P_Y[0], 0, 0, xe, ye, wind);
int S_X,S_Y,F_X,F_Y;
S_X=P_X[0]+899; S_Y=P_Y[0]-428;
F_X=P_X[0]+882; F_Y=P_Y[0]-416;
loadimage(#Posk[20][20],"C:\Users\Vlad\Documents\Image_0.bmp");
loop:;
sleep(100);
if (getkeystate(192)==1)Poisk();
goto loop;
function Poisk()
{
findimage(1, #Posk[0][00], Posk[0][0], #u_X[0], #u_Y[0], S_X, S_Y, F_X, F_Y, wind);
mousemove(u_X[0],u_Y[0]);
}
int P_X[1], P_Y[1], u_X[1], u_Y[1];
int xe, ye, color;
int S_X, S_Y, F_X, F_Y;
win wind=window ("StarConflict 1.0.13.64275", "game_main_window", -1)
getdisplay(color, xe, ye);
loadimage (#PrivyazkaXY[0][0], "C:\Users\Vlad\Documents\Image_1.bmp");
findimage(1, #PrivyazkaXY[0][0], PrivyazkaXY[0][0], #P_X[0], #P_Y[0], 0, 0, xe, ye, wind);
int S_X,S_Y,F_X,F_Y;
S_X=P_X[0]+899; S_Y=P_Y[0]-428;
F_X=P_X[0]+882; F_Y=P_Y[0]-416;
loadimage(#Posk[20][20],"C:\Users\Vlad\Documents\Image_0.bmp");
loop:;
sleep(100);
if (getkeystate(192)==1)Poisk();
goto loop;
function Poisk()
{
findimage(1, #Posk[0][00], Posk[0][0], #u_X[0], #u_Y[0], S_X, S_Y, F_X, F_Y, wind);
mousemove(u_X[0],u_Y[0]);
}