777J0KeR777 пишет:
Теперь mousemove ошибку выдаёт
ггописка
Цитата:
win w=window ("Forge of Empires - Mozilla Firefox", "MozillaWindowClass", -1);
int Image_1[25][25];
int Image_2[16][19];
loadimage (#Image_1[0][0], "J:\kibor\Новая папка\money2.bmp");
loadimage (#Image_2[0][0], "J:\kibor\Новая папка\закрыть.bmp");
int PosX, PosY, PosXt, PosYt;
visualwindow (0, 0, 0, w.widthclient, w.heightclient, 10, 10, 25, w);//???????????????????????????????
transparency (-1, w);
enabletimer(0);
tt:
if (findimage(1, #Image_1[0][0], -1, #PosX, #PosY, 0, 0, w.widthclient, w.heightclient, 50, 50, 50, 50, 50, 50, 80, -1, w)==1)
{
sendmouse(LEFT, PosX+imagewidth(#Image_1[0][0])/2, PosY+imageheight(#Image_1[0][0])/2+50, w);
sleep(500);
}
sleep(10);
goto tt;
CREATE_TIMER(0, 1000)
{
if (findimage(1, #Image_2[0][0], -1, #PosXt, #PosYt, 0, 0, w.widthclient, w.heightclient, w)==1)
{
sendmouse(LEFT, PosXt+imagewidth(#Image_2[0][0])/2, PosYt+imageheight(#Image_2[0][0])/2, w);
}
}
int Image_1[25][25];
int Image_2[16][19];
loadimage (#Image_1[0][0], "J:\kibor\Новая папка\money2.bmp");
loadimage (#Image_2[0][0], "J:\kibor\Новая папка\закрыть.bmp");
int PosX, PosY, PosXt, PosYt;
visualwindow (0, 0, 0, w.widthclient, w.heightclient, 10, 10, 25, w);//???????????????????????????????
transparency (-1, w);
enabletimer(0);
tt:
if (findimage(1, #Image_1[0][0], -1, #PosX, #PosY, 0, 0, w.widthclient, w.heightclient, 50, 50, 50, 50, 50, 50, 80, -1, w)==1)
{
sendmouse(LEFT, PosX+imagewidth(#Image_1[0][0])/2, PosY+imageheight(#Image_1[0][0])/2+50, w);
sleep(500);
}
sleep(10);
goto tt;
CREATE_TIMER(0, 1000)
{
if (findimage(1, #Image_2[0][0], -1, #PosXt, #PosYt, 0, 0, w.widthclient, w.heightclient, w)==1)
{
sendmouse(LEFT, PosXt+imagewidth(#Image_2[0][0])/2, PosYt+imageheight(#Image_2[0][0])/2, w);
}
}