Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » About Kibor » Version 3.06 Working with the clipboard

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

1. Kibor - 24 Июля, 2018 - 02:50:05 - перейти к сообщению
Added functions for reading and writing to the clipboard.
writeclipboard - writing to the clipboard.
It takes one parameter of the type string, char, int, double .

Example:
 Цитата:
writeclipboard ("bla bla bla");
writeclipboard (55656.5656);

char a = 'r';
writeclipboard (a);

int r = 2;
writeclipboard (r);



The function returns -1 in case of failure and 1 if successful.
.....


readclipboard - read from the clipboard.
It takes one parameter string or a pointer to the array char .

Example:
 Цитата:
string per;
readclipboard (per);

Writes text to the string from the buffer.


c
 Цитата:
char per [99];
readclipboard (# per [0]);

Writes to the char array what is in the buffer.
If the array char is more than the size of what is in the buffer, the last writeable byte into the array will be 0


The function returns -1 in case of failure or if the char array is less than the size of what is in the buffer.
or 1 if luck is written to string.
or the number of bytes on successful execution when writing to char.

Powered by ExBB FM 1.0 Final