Kibor Bot Autoclicker » Kibor - Integrated development environment for bots » Issues and problem solving » How to remove unnecessary spaces

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

1. Up2Vez - 05 Декабря, 2017 - 14:42:05 - перейти к сообщению
Hello. I want to use the readtext function. I recognize the numbers in the table. The problem is that there are gaps between numbers
The number 5798 can recognize as 579 8. That is, there is a space between 9 and 8.
How to configure readtext to avoid this?
2. Kibor - 05 Декабря, 2017 - 16:23:07 - перейти к сообщению
CODE:
string text="5 7 281";
int XP;
XP=formatsn(del_space(text));
messagebox (XP);



function del_space(string t)
{
int aw=size(t);
char a[50];
strcpy(#a[0], t);
t="";
for (int n=0; n<aw; n++)
{
if (a[n]!=' ')t=t+a[n];
}
return t;
}

Powered by ExBB FM 1.0 Final