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;
}
----- The Visual Code Editor is Kibor. Creating bots without knowledge of programming.
Learning function for recognizing text.
----- |