что то происходит и он не работает, потом вчера до 3х часов ночи пытался запустить бота в игре но все четно. плюнул пошел спать. сегодня утром запускаю все работает. Думаю дай сделаю EXE получил бесплатку на день программа перегрузилась и все!!! не работает!!!
CODE:
int size_key_char_KIB=-1;
win w_KIB;
int ex_KIB, ey_KIB, sum_KIB, x_KIB, y_KIB;
int Image_0_KIB[6][12];
int Image_1_KIB[5][8];
int Image_2_KIB[6][7];
start_();
m_KIB15: if (findimage_(#Image_2_KIB[0][0], 100, 0, 0, 0, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 100, 1, 223, 24, 232, 36, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB14;
else goto m_KIB16;
m_KIB14: if (findimage_(#Image_1_KIB[0][0], 100, 0, 0, 0, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 100, 1, 156, 37, 165, 45, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB4;
else goto m_KIB17;
m_KIB4: if (findimage_(#Image_0_KIB[0][0], 3000, 0, 0, 0, 0, 0, -1, 0, 0, 5000, -1, -1, -1, 0, 50, 1, 851, 6, 859, 18, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB5;
else goto m_KIB13;
m_KIB5: key_(113, 1, "", 0, 0, 1000);
key_(112, 1, "", 0, 0, 1000);
if (findimage_(#Image_0_KIB[0][0], 3000, 0, 0, 0, 0, 0, -1, 0, 0, 5000, -1, -1, -1, 0, 50, 1, 851, 6, 859, 18, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB5;
else goto m_KIB9;
m_KIB3: mouse_(0, 6, 870, 370, 100);
mouse_(0, 9, 873, 370, 100);
key_(9, 1, "", 0, 10, 1000); goto m_KIB15;
m_KIB10: key_(119, 1, "", 0, 0, 1000);
key_(119, 1, "", 0, 0, 1000);
key_(119, 1, "", 0, 0, 1000);
key_(119, 1, "", 0, 0, 1000); goto m_KIB3;
m_KIB13: //áåðåì â òàðãåò
key_(9, 1, "", 0, 0, 1000); goto m_KIB4;
m_KIB9: key_(119, 1, "", 0, 0, 1000); goto m_KIB10;
m_KIB16: key_(117, 1, "", 0, 50, 5000); goto m_KIB15;
m_KIB17: key_(118, 1, "", 0, 50, 5000); goto m_KIB14;
function start_()
{
load_image_();
pause(1000);
int x, y;
getmouse(x, y);
w_KIB=getwindow(0, x, y);
ex_KIB=w_KIB.widthclient; ey_KIB=w_KIB.heightclient;
}
function key_(int k, int m, string text, int pc, int p1, int p2)
{
pause(p1);
if (m==-1)
{
if (size_key_char_KIB==-1)
{
size_key_char_KIB=100;
new char key_char_KIB[size_key_char_KIB+1];
}
int size_key=size(text);
if (size_key_char_KIB<size_key)
{
delete key_char_KIB;
size_key_char_KIB=size_key;
new char key_char_KIB[size_key_char_KIB+1];
}
strcpy(#key_char_KIB[0], text);
for (int n=0; n<size_key; n++){sendkey(key_char_KIB[n], w_KIB); sleep(pc);}
}
else
{
if (m==1) sendkey(k, w_KIB);
if (m==2) sendkeydown(k, w_KIB);
if (m==3) sendkeyup(k, w_KIB);
}
pause(p2);
}
function mouse_(int p1, int m, int xm, int ym, int p2)
{
pause(p1);
if (m==1) sendmouse(LEFT, xm, ym, w_KIB);
if (m==2) sendmouse(MIDDLE, xm, ym, w_KIB);
if (m==3) sendmouse(RIGHT, xm, ym, w_KIB);
if (m==4) sendmousedown(LEFT, xm, ym, w_KIB);
if (m==5) sendmousedown(MIDDLE, xm, ym, w_KIB);
if (m==6) sendmousedown(RIGHT, xm, ym, w_KIB);
if (m==7) sendmouseup(LEFT, xm, ym, w_KIB);
if (m==8) sendmouseup(MIDDLE, xm, ym, w_KIB);
if (m==9) sendmouseup(RIGHT, xm, ym, w_KIB);
if (m==10) sendmousedbl(LEFT, xm, ym, w_KIB);
if (m==11) sendmousedbl(MIDDLE, xm, ym, w_KIB);
if (m==12) sendmousedbl(RIGHT, xm, ym, w_KIB);
if (m==13) sendmousemove(xm, ym, w_KIB);
pause(p2);
}
function findimage_(int #Image, int t, int p1, int p2, int m, int xm, int ym, int mov_m, int mov_x, int mov_y, int p3, int wait, int cycle, int fon, int r, int p, int k, int xs, int ys, int xf, int yf, int#sum, int#x, int#y)
{
int timKIB, sumKIB, xKIB, yKIB, tx, ty, tcycle=0;
sty: pause(p1);
sumKIB=0;
if (t!=0) timKIB=gettime();
a: if (r==0 && p==100){sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, w_KIB); if (sum>0) goto e;}
else {sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, r, r, r, r, r, r, p, 1, w_KIB); if (sum>0) goto e;}
if (t==0) return 0;
if (gettime()-timKIB<t){sleep(20); goto a;}
return 0;
e: sumKIB=sum; xKIB=x[0]; yKIB=y[0];
pause(p2);
if (m==1){sendmouse(LEFT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==2){sendmouse(MIDDLE, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==3){sendmouse(RIGHT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==4){sendmousedown(LEFT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==5){sendmousedown(MIDDLE, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==6){sendmousedown(RIGHT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==7){sendmouseup(LEFT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==8){sendmouseup(MIDDLE, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==9){sendmouseup(RIGHT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==10){sendmousedbl(LEFT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==11){sendmousedbl(MIDDLE, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==12){sendmousedbl(RIGHT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==13)sendmousemove(xs+xKIB+xm, ys+yKIB+ym, w_KIB);
hy: if (mov_m==1)sendmousemove(mov_x, mov_y, w_KIB);
if (m>0 && m<14)pause(p3);
if (wait!=-1)
{
for (int ttim=gettime(); gettime()-ttim<wait; sleep(20))
{
if (r==0 && p==100){if (findimage(1, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, w_KIB)==0)return sumKIB;}
else {if (findimage(1, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, r, r, r, r, r, r, p, 1, w_KIB)==0)return sumKIB;}
}
if (tcycle<cycle){tcycle++; goto sty;}
return 0;
}
return sumKIB;
}
function load_image_()
{
loadimage (#Image_0_KIB[0][0], "C:\Users\Àíàòîëèé\Downloads\ÁÎÒ ÌÎÉ\111\õïìîáà.bmp");
loadimage (#Image_1_KIB[0][0], "C:\Users\Àíàòîëèé\Downloads\ÁÎÒ ÌÎÉ\111\ìï.bmp");
loadimage (#Image_2_KIB[0][0], "C:\Users\Àíàòîëèé\Downloads\ÁÎÒ ÌÎÉ\111\õï.bmp");
}
int size_key_char_KIB=-1;
win w_KIB;
int ex_KIB, ey_KIB, sum_KIB, x_KIB, y_KIB;
int Image_0_KIB[6][12];
int Image_1_KIB[5][8];
int Image_2_KIB[6][7];
start_();
m_KIB15: if (findimage_(#Image_2_KIB[0][0], 100, 0, 0, 0, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 100, 1, 223, 24, 232, 36, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB14;
else goto m_KIB16;
m_KIB14: if (findimage_(#Image_1_KIB[0][0], 100, 0, 0, 0, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 100, 1, 156, 37, 165, 45, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB4;
else goto m_KIB17;
m_KIB4: if (findimage_(#Image_0_KIB[0][0], 3000, 0, 0, 0, 0, 0, -1, 0, 0, 5000, -1, -1, -1, 0, 50, 1, 851, 6, 859, 18, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB5;
else goto m_KIB13;
m_KIB5: key_(113, 1, "", 0, 0, 1000);
key_(112, 1, "", 0, 0, 1000);
if (findimage_(#Image_0_KIB[0][0], 3000, 0, 0, 0, 0, 0, -1, 0, 0, 5000, -1, -1, -1, 0, 50, 1, 851, 6, 859, 18, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB5;
else goto m_KIB9;
m_KIB3: mouse_(0, 6, 870, 370, 100);
mouse_(0, 9, 873, 370, 100);
key_(9, 1, "", 0, 10, 1000); goto m_KIB15;
m_KIB10: key_(119, 1, "", 0, 0, 1000);
key_(119, 1, "", 0, 0, 1000);
key_(119, 1, "", 0, 0, 1000);
key_(119, 1, "", 0, 0, 1000); goto m_KIB3;
m_KIB13: //áåðåì â òàðãåò
key_(9, 1, "", 0, 0, 1000); goto m_KIB4;
m_KIB9: key_(119, 1, "", 0, 0, 1000); goto m_KIB10;
m_KIB16: key_(117, 1, "", 0, 50, 5000); goto m_KIB15;
m_KIB17: key_(118, 1, "", 0, 50, 5000); goto m_KIB14;
function start_()
{
load_image_();
pause(1000);
int x, y;
getmouse(x, y);
w_KIB=getwindow(0, x, y);
ex_KIB=w_KIB.widthclient; ey_KIB=w_KIB.heightclient;
}
function key_(int k, int m, string text, int pc, int p1, int p2)
{
pause(p1);
if (m==-1)
{
if (size_key_char_KIB==-1)
{
size_key_char_KIB=100;
new char key_char_KIB[size_key_char_KIB+1];
}
int size_key=size(text);
if (size_key_char_KIB<size_key)
{
delete key_char_KIB;
size_key_char_KIB=size_key;
new char key_char_KIB[size_key_char_KIB+1];
}
strcpy(#key_char_KIB[0], text);
for (int n=0; n<size_key; n++){sendkey(key_char_KIB[n], w_KIB); sleep(pc);}
}
else
{
if (m==1) sendkey(k, w_KIB);
if (m==2) sendkeydown(k, w_KIB);
if (m==3) sendkeyup(k, w_KIB);
}
pause(p2);
}
function mouse_(int p1, int m, int xm, int ym, int p2)
{
pause(p1);
if (m==1) sendmouse(LEFT, xm, ym, w_KIB);
if (m==2) sendmouse(MIDDLE, xm, ym, w_KIB);
if (m==3) sendmouse(RIGHT, xm, ym, w_KIB);
if (m==4) sendmousedown(LEFT, xm, ym, w_KIB);
if (m==5) sendmousedown(MIDDLE, xm, ym, w_KIB);
if (m==6) sendmousedown(RIGHT, xm, ym, w_KIB);
if (m==7) sendmouseup(LEFT, xm, ym, w_KIB);
if (m==8) sendmouseup(MIDDLE, xm, ym, w_KIB);
if (m==9) sendmouseup(RIGHT, xm, ym, w_KIB);
if (m==10) sendmousedbl(LEFT, xm, ym, w_KIB);
if (m==11) sendmousedbl(MIDDLE, xm, ym, w_KIB);
if (m==12) sendmousedbl(RIGHT, xm, ym, w_KIB);
if (m==13) sendmousemove(xm, ym, w_KIB);
pause(p2);
}
function findimage_(int #Image, int t, int p1, int p2, int m, int xm, int ym, int mov_m, int mov_x, int mov_y, int p3, int wait, int cycle, int fon, int r, int p, int k, int xs, int ys, int xf, int yf, int#sum, int#x, int#y)
{
int timKIB, sumKIB, xKIB, yKIB, tx, ty, tcycle=0;
sty: pause(p1);
sumKIB=0;
if (t!=0) timKIB=gettime();
a: if (r==0 && p==100){sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, w_KIB); if (sum>0) goto e;}
else {sum=findimage(k, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, r, r, r, r, r, r, p, 1, w_KIB); if (sum>0) goto e;}
if (t==0) return 0;
if (gettime()-timKIB<t){sleep(20); goto a;}
return 0;
e: sumKIB=sum; xKIB=x[0]; yKIB=y[0];
pause(p2);
if (m==1){sendmouse(LEFT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==2){sendmouse(MIDDLE, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==3){sendmouse(RIGHT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==4){sendmousedown(LEFT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==5){sendmousedown(MIDDLE, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==6){sendmousedown(RIGHT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==7){sendmouseup(LEFT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==8){sendmouseup(MIDDLE, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==9){sendmouseup(RIGHT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==10){sendmousedbl(LEFT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==11){sendmousedbl(MIDDLE, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==12){sendmousedbl(RIGHT, xs+xKIB+xm, ys+yKIB+ym, w_KIB); goto hy;}
if (m==13)sendmousemove(xs+xKIB+xm, ys+yKIB+ym, w_KIB);
hy: if (mov_m==1)sendmousemove(mov_x, mov_y, w_KIB);
if (m>0 && m<14)pause(p3);
if (wait!=-1)
{
for (int ttim=gettime(); gettime()-ttim<wait; sleep(20))
{
if (r==0 && p==100){if (findimage(1, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, w_KIB)==0)return sumKIB;}
else {if (findimage(1, #Image[0][0], fon, #x[0], #y[0], xs, ys, xf, yf, r, r, r, r, r, r, p, 1, w_KIB)==0)return sumKIB;}
}
if (tcycle<cycle){tcycle++; goto sty;}
return 0;
}
return sumKIB;
}
function load_image_()
{
loadimage (#Image_0_KIB[0][0], "C:\Users\Àíàòîëèé\Downloads\ÁÎÒ ÌÎÉ\111\õïìîáà.bmp");
loadimage (#Image_1_KIB[0][0], "C:\Users\Àíàòîëèé\Downloads\ÁÎÒ ÌÎÉ\111\ìï.bmp");
loadimage (#Image_2_KIB[0][0], "C:\Users\Àíàòîëèé\Downloads\ÁÎÒ ÌÎÉ\111\õï.bmp");
}
(Добавление)
[img](для просмотра ссылки Вам необходимо авторизоваться) /img]
(Добавление)
Скрин приложил
(Добавление)
[img](для просмотра ссылки Вам необходимо авторизоваться) /img]
и еще один скрин может тут что не так!