Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » About Kibor » Version 3.10 Implementation of image arrays in the functions loadimage, findimage, saveimage

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

1. Kibor - 24 Июля, 2018 - 04:11:14 - перейти к сообщению
Implementation of image arrays in the functions loadimage, findimage, saveimage.

Images in Kibor are stored in two-dimensional masivas int.
Now you can store them in three-dimensional arrays, where the first index is the ordinal number of this image.

Example:
int image [100] [500] [500];
Can store 100 images up to 500 by 500.
Images can be smaller than index 2 and 3 ...

An example of downloading and searching for images should be 10 images Image_0.bmp - Image_9.bmp on the C:\drive with a frame of no more than 100 per 100 each (possible less):

CODE:
int Image_0 [10] [100] [100];
int PosX, PosY;

int n=0;
a: if (n <10)
{
loadimage (# Image_0 [n] [0] [0], "C:\Image _" + format (n) + ". bmp");
n ++;
goto a;
}

n=0;
a1: if (n <10)
{
if (findimage (1, # Image_0 [n] [0] [0], 0, #PosX, #PosY, 0, 0, 1366, 716, -1) == 1)
{
mousemove (PosX, PosY);
sleep (600);
}
n ++;
goto a1;
}

Powered by ExBB FM 1.0 Final