CODE:
string text_KIB;
int sum_symbol_KIB;
int n_readtext_KIB;
int color_text_KIB_5[1];
color_text_KIB_5[0]=0;
double correct_symbol_KIB[45];
loadsymbolbase("C:\Users\Windows_7\Downloads\basetext.sib");
win w_KIB;
int ex_KIB, ey_KIB, sum_KIB, x_KIB, y_KIB;
start_();
sum_symbol_KIB=readtext(RU | MARK, #text_KIB, 8, 1, -1, 50, -1, #color_text_KIB_5[0], -1, 0, 50, 1064, 208, 1317, 222, w_KIB);
for (n_readtext_KIB=0; n_readtext_KIB<sum_symbol_KIB; n_readtext_KIB++)correct_symbol_KIB[n_readtext_KIB]=symbolcorrect(n_readtext_KIB);
function start_()
{
pause(1000);
int x, y;
getmouse(x, y);
w_KIB=getwindow(0, x, y);
ex_KIB=w_KIB.widthclient; ey_KIB=w_KIB.heightclient;
}
var dic = {
'а':'a'
'б':'b'
'в':'v'
'г':'g'
'д':'d'
'е':'e'
'ё':'e'
'ж':'gh'
'з':'z'
'и':'i'
'й':'j'
'к':'k'
'л':'l'
'м':'m'
'н':'n'
'о':'o'
'п':'p'
'р':'r'
'с':'s'
'т':'t'
'у':'u'
'ф':'f'
'х':'h'
'ц':'c'
'ч':'ch'
'ш':'sh'
'щ':'sch'
'ъ':'y'
'ы':'y'
'ь':'y'
'э':'e'
'ю':'yu'
'я':'ya'
};
var rus = "привет мир";
var eng = rus.split('').map(el=>el = dic[el]||el).join('');
console.log(eng);
var text_KIB = text.split('').map(el=>el = dic[el]||el).join('');
if (fopen ("D:\програмирование-2\1zenoposter\RubSerf\Capcha_Rubserf\тест.txt", "w")!=0)
{
fwrite(text_KIB);
fclose();//закрываем файл
}
int sum_symbol_KIB;
int n_readtext_KIB;
int color_text_KIB_5[1];
color_text_KIB_5[0]=0;
double correct_symbol_KIB[45];
loadsymbolbase("C:\Users\Windows_7\Downloads\basetext.sib");
win w_KIB;
int ex_KIB, ey_KIB, sum_KIB, x_KIB, y_KIB;
start_();
sum_symbol_KIB=readtext(RU | MARK, #text_KIB, 8, 1, -1, 50, -1, #color_text_KIB_5[0], -1, 0, 50, 1064, 208, 1317, 222, w_KIB);
for (n_readtext_KIB=0; n_readtext_KIB<sum_symbol_KIB; n_readtext_KIB++)correct_symbol_KIB[n_readtext_KIB]=symbolcorrect(n_readtext_KIB);
function start_()
{
pause(1000);
int x, y;
getmouse(x, y);
w_KIB=getwindow(0, x, y);
ex_KIB=w_KIB.widthclient; ey_KIB=w_KIB.heightclient;
}
var dic = {
'а':'a'
'б':'b'
'в':'v'
'г':'g'
'д':'d'
'е':'e'
'ё':'e'
'ж':'gh'
'з':'z'
'и':'i'
'й':'j'
'к':'k'
'л':'l'
'м':'m'
'н':'n'
'о':'o'
'п':'p'
'р':'r'
'с':'s'
'т':'t'
'у':'u'
'ф':'f'
'х':'h'
'ц':'c'
'ч':'ch'
'ш':'sh'
'щ':'sch'
'ъ':'y'
'ы':'y'
'ь':'y'
'э':'e'
'ю':'yu'
'я':'ya'
};
var rus = "привет мир";
var eng = rus.split('').map(el=>el = dic[el]||el).join('');
console.log(eng);
var text_KIB = text.split('').map(el=>el = dic[el]||el).join('');
if (fopen ("D:\програмирование-2\1zenoposter\RubSerf\Capcha_Rubserf\тест.txt", "w")!=0)
{
fwrite(text_KIB);
fclose();//закрываем файл
}