PHP:
win w=window ("Lineage II", "l2UnrealWWindowsViewportWindow", 8, 27, 1440, 885, -1);
if(w==0){messagebox("Нет окна");goto er;}
int Image_0[50][100];
if(load_img() ==-1){messagebox("Поплавк не найден");}
Sutki()
er:;
function load_img()
{
if(loadimage (#Image_0[0][0], "D:\RUS_fisher\img_reb.bmp")<1)return -1;
return 1;
}
function Sutki()
{
int x, y;
while(findimage(1, #Image_0[0][0], -1, #x, #y, 0, 0, x.width, y.height, w)==1)sleep(50);
messagebox("День");
}
win w=window ("Lineage II", "l2UnrealWWindowsViewportWindow", 8, 27, 1440, 885, -1);
if(w==0){messagebox("Нет окна");goto er;}
int Image_0[50][100];
if(load_img() ==-1){messagebox("Поплавк не найден");}
Sutki()
er:;
function load_img()
{
if(loadimage (#Image_0[0][0], "D:\RUS_fisher\img_reb.bmp")<1)return -1;
return 1;
}
function Sutki()
{
int x, y;
while(findimage(1, #Image_0[0][0], -1, #x, #y, 0, 0, x.width, y.height, w)==1)sleep(50);
messagebox("День");
}