CODE:
win w=window (-1, "GeckoPluginWindow", window ("Игра - Mozilla Firefox", "MozillaWindowClass", -1));
int x[20], y[20];//êîîðäèíàòû ìîáîâ
int Mob_X=6, Mob_Y=6;//Öåíòð ìîáà
int Mob_Din_X=150, Mob_Din_Y=150;//Îáúåìû ìîáà
//----------------------------------------------------------
a:;
search();
click();
a;
//===================================
function search()
{
poisk:
finddynamic(0, #x[0], #y[0], 0, 0, 0, 0, 295, 130, 1071, 449, w);
sleep(500);
int k=finddynamic(10, #x[0], #y[0], Mob_X, Mob_Y, Mob_Din_X, Mob_Din_Y, 295, 130, 1071, 449, w);
if (k>12)goto poisk;
if (k<2)goto poisk;
}
//==================================
function click()
{
n=0;
b:
if (n<k)
{
mousemove(x[n], y[n]);
sleep(1000);
n++;
return 1;
b;
}
return 0;
}
//===================================
win w=window (-1, "GeckoPluginWindow", window ("Игра - Mozilla Firefox", "MozillaWindowClass", -1));
int x[20], y[20];//êîîðäèíàòû ìîáîâ
int Mob_X=6, Mob_Y=6;//Öåíòð ìîáà
int Mob_Din_X=150, Mob_Din_Y=150;//Îáúåìû ìîáà
//----------------------------------------------------------
a:;
search();
click();
a;
//===================================
function search()
{
poisk:
finddynamic(0, #x[0], #y[0], 0, 0, 0, 0, 295, 130, 1071, 449, w);
sleep(500);
int k=finddynamic(10, #x[0], #y[0], Mob_X, Mob_Y, Mob_Din_X, Mob_Din_Y, 295, 130, 1071, 449, w);
if (k>12)goto poisk;
if (k<2)goto poisk;
}
//==================================
function click()
{
n=0;
b:
if (n<k)
{
mousemove(x[n], y[n]);
sleep(1000);
n++;
return 1;
b;
}
return 0;
}
//===================================
При запуске скрипта - ругается
или сюда