Участник
Покинул форум
Сообщений всего: 56
Дата рег-ции: Окт. 2014
Репутация: 1
|
не переходит ошибка
(Добавление)
исправил
но он все равно не тыкает на кнопку видимо промахивается
win wind=window ("BlueStacks App Player", "WindowsForms10.Window.8.app.0.33c0d9d", -1);
int col, x, y;
int Image_0[142][64];loadimage (#Image_0[0][0], "C:\Users\root\Documents\Image_0.bmp");
getdisplay(col, x, y);
int n=0;
int PosX , PosY;
int Year, Month, DayOfWeek, Day, Hour, Minute, Second, Milliseconds;
int âðåìÿ_âûïîëíåíèÿ_ìèëèñåê;
int time;
j: getlocaltime(Year, Month, DayOfWeek, Day, Hour, Minute, Second, Milliseconds);
âðåìÿ_âûïîëíåíèÿ_ìèëèñåê=0;
if (Hour==23 && Minute>=30)âðåìÿ_âûïîëíåíèÿ_ìèëèñåê=3600000; // 60*60*1000 ÷àñ
if (Hour==5 && Minute>=30)âðåìÿ_âûïîëíåíèÿ_ìèëèñåê=3600000; // 60*60*1000 ÷àñ
if (Hour==10 && Minute>=0)âðåìÿ_âûïîëíåíèÿ_ìèëèñåê=3600000; // 60*60*1000 ÷àñ
if (âðåìÿ_âûïîëíåíèÿ_ìèëèñåê!=0)
{
sendmouse (LEFT, 597, 154, wind);
pause (2000);
time=gettime();
a: if (gettime()-time<âðåìÿ_âûïîëíåíèÿ_ìèëèñåê)
{
fight();
sleep(100);
goto a;
}
}
sleep(100);
goto j;
//////////////////
function fight()
{
b: if (findimage(1, #Image_0[0][0], 0, #PosX, #PosY, 0, 0,wind.leftclient, wind.topclient, wind)==0)
{sleep(50); goto b;}
sendmouse (LEFT, PosX, PosY,wind);
pause (6500);
sendmouse (LEFT, 697, 606, wind);
pause (100);
sendmouse (LEFT, 573, 608, wind);
pause (106);
sendmouse (LEFT, 459, 609, wind);
pause (121);
sendmouse (LEFT, 337, 612, wind);
pause (4000);
sendmouse (LEFT, 697, 606, wind);
pause (100);
sendmouse (LEFT, 573, 608, wind);
pause (106);
sendmouse (LEFT, 459, 609, wind);
pause (121);
sendmouse (LEFT, 337, 612, wind);
pause (4000);
sendmouse (LEFT, 697, 606, wind);
pause (100);
sendmouse (LEFT, 573, 608, wind);
pause (106);
sendmouse (LEFT, 459, 609, wind);
pause (121);
sendmouse (LEFT, 337, 612, wind);
pause (4000);
sendmouse (LEFT, 697, 606, wind);
pause (100);
sendmouse (LEFT, 573, 608, wind);
pause (106);
sendmouse (LEFT, 459, 609, wind);
pause (121);
sendmouse (LEFT, 337, 612, wind);
pause (4000);
sendmouse (LEFT, 697, 606, wind);
pause (100);
sendmouse (LEFT, 573, 608, wind);
pause (106);
sendmouse (LEFT, 459, 609, wind);
pause (121);
sendmouse (LEFT, 337, 612, wind);
pause (4000);
sendmouse (LEFT, 697, 606, wind);
pause (100);
sendmouse (LEFT, 573, 608, wind);
pause (106);
sendmouse (LEFT, 459, 609, wind);
pause (121);
sendmouse (LEFT, 337, 612, wind);
pause (4000);
sendmouse (LEFT, 697, 606, wind);
pause (100);
sendmouse (LEFT, 573, 608, wind);
pause (106);
sendmouse (LEFT, 459, 609, wind);
pause (121);
sendmouse (LEFT, 337, 612, wind);
pause (10000);
//íàíÿòü 100 ðûöàðåé
sendmouse (LEFT, 590, 616, wind);
pause (1856);
sendmouse (LEFT, 742, 547, wind);
pause (1856);
sendmousetransfer(LEFT, 272, 471, 271, 224, 0.00006, wind);
pause (1500);
sendmouse (LEFT, 275, 471, wind);
pause (1794);
sendmouse (LEFT, 804, 558, wind);
pause (1045);
sendmouse (LEFT, 610, 421, wind);
pause (749);
sendmouse (LEFT, 610, 514, wind);
pause (608);
sendmouse (LEFT, 610, 514, wind);
pause (437);
sendmouse (LEFT, 783, 521, wind);
pause (905);
sendmouse (LEFT, 1040, 37, wind);
pause (1000);
}
} |