Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » Issues and problem solving » Error message loadimage

Страниц (1): [1]
 

1. Porgan - 03 Декабря, 2017 - 06:05:17 - перейти к сообщению
Hi.
Help with the code.

loadimage error

CODE:
win w=window (-1, "TMainForm", -1)
int Image_0[12][5]; loadimage (#Image_0[0][0], "C:\ph\Image_0.bmp");
int r;
int PosX_0[512];int PosY_0[512];
r=findimage(-1, #Image_0[0][0], 0, #PosX_0[0], #PosY_0[0], 0, 0, w.widthclient, w.heightclient, -1);
messagebox(r);
2. Kibor - 03 Декабря, 2017 - 06:49:00 - перейти к сообщению
No semicolon after
CODE:
win w=window (-1, "TMainForm", -1)


If you look in a window, you need to put a pointer to the window at the end of findimage, and not -1
CODE:
r=findimage(-1, #Image_0[0][0], 0, #PosX_0[0], #PosY_0[0], 0, 0, w.widthclient, w.heightclient, w);
3. Porgan - 04 Декабря, 2017 - 06:17:25 - перейти к сообщению
Thank you.

Corrected according to your advice, but the image does not find. Although it is.
If you look around the screen, it finds.
Prompt in what there can be an error.

Thank you.
4. Kibor - 04 Декабря, 2017 - 13:47:55 - перейти к сообщению
Can there be a pointer to the wrong window?
The window is defined only by class. Perhaps there are windows that have the same class. Specify the name of the window.

Powered by ExBB FM 1.0 Final