CODE:
pause ( 1000 )
getmouse ( xM_Kib'-842150451' , yM_Kib'-842150451' )
W_Kib = getwindow ( 0 , xM_Kib'1152' , yM_Kib'629' )
eX_Kib = W_Kib.widthclient'2560'
eY_Kib = W_Kib.heightclient'1440'
int K_Cut = 0
int X_Raspoznavanie_nach = 0
int Y_Raspoznavanie_nach = 0
int X_Raspoznavanie_okonch = 0
int Y_Raspoznavanie_okonch = 0
load_base ( )
loadsymbolbase ( pathfolder ( ) + " \Бот для БДО\Заточка вручную\Base_icon_inventar.sib " )
RunPython ( 1 , 0 , 1 , 10 , 10 , 700 , 200 , 0 )
int N_Array = - 1
if ( P_Array'0' )
if ( Consol'0' )
int Ot = runpython ( RunP'1' )
sendgetpython ( " print( " + formatic ( 39 ) + " Yes " + formatic ( 39 ) + " ) " )
return Ot'1'
R_Name_screen = " Область поиска значка Инвентаря "
R_text_Cut = " 1 "
Text_Raspoznavanie_korrect = " "
initialarray ( # Text_Raspoznavanie_char'Н' [ 0 ] , 0 )
X_Raspoznavanie_nach = 2110
Y_Raspoznavanie_nach = 360
X_Raspoznavanie_okonch = 2156
Y_Raspoznavanie_okonch = 400
ReadText ( 1 , # Screen'-842150451' [ 0 ] [ 0 ] , # W_Kib , W_Kib.leftclient'0' , W_Kib.topclient'0' , 400 , pathfolder ( ) + " \Бот для БДО\Заточка вручную\Base_icon_inventar.sib " , # Text_Raspoznavanie'' , # K_Raspoznavanie'-842150451' , # X_Raspoznavanie'-842150451' [ 0 ] , # Y_Raspoznavanie'-842150451' [ 0 ] , # sX_S'-842150451' [ 0 ] , # sY_S'-842150451' [ 0 ] , # Cor_Raspoznavanie'-6277438562204192500000000000000000000000000000000000000000000000000.0' [ 0 ] , # Type_S'-842150451' [ 0 ] , # K_Str'-842150451' , # Text_Str'' [ 0 ] , # X_Str'-842150451' [ 0 ] , # Y_Str'-842150451' [ 0 ] , 0 , 0 , 1 , 0 , 8 , 1 , 15 , - 1 , - 1 , 0 , # Col_T0'0' [ 0 ] , 0 , 0 , # Kol_F0'255' [ 0 ] , 0 , 5 , 50 , X_Raspoznavanie_nach'2110' , Y_Raspoznavanie_nach'360' , X_Raspoznavanie_okonch'2156' , Y_Raspoznavanie_okonch'400' , - 1 , 0 )
disablesymbolbase ( ALL )
enablesymbolbase ( base'E:\ПРОГГИ\kibor_set\\ ... ase_icon_inventar.sib' )
pause ( p1'400' )
if ( GT'0' == 0 && GF'0' == 0 )
if ( ew'1' == 0 )
if ( ew'1' == 1 )
readtext ( g1'0' * RU + g2'0' * EN + g3'1' * NUM + g4'0' * MARK , # text'' , f'8' , s'1' , k'15' , d1'-1' , d2'-1' , - 1 , - 1 , 0 , i'50' , v_x'0' + ex1'2110' , v_y'0' + ey1'360' , v_x'0' + ex2'2156' , v_y'0' + ey2'400' , - 1 )
getmouse ( xM_Kib'-842150451' , yM_Kib'-842150451' )
W_Kib = getwindow ( 0 , xM_Kib'1152' , yM_Kib'629' )
eX_Kib = W_Kib.widthclient'2560'
eY_Kib = W_Kib.heightclient'1440'
int K_Cut = 0
int X_Raspoznavanie_nach = 0
int Y_Raspoznavanie_nach = 0
int X_Raspoznavanie_okonch = 0
int Y_Raspoznavanie_okonch = 0
load_base ( )
loadsymbolbase ( pathfolder ( ) + " \Бот для БДО\Заточка вручную\Base_icon_inventar.sib " )
RunPython ( 1 , 0 , 1 , 10 , 10 , 700 , 200 , 0 )
int N_Array = - 1
if ( P_Array'0' )
if ( Consol'0' )
int Ot = runpython ( RunP'1' )
sendgetpython ( " print( " + formatic ( 39 ) + " Yes " + formatic ( 39 ) + " ) " )
return Ot'1'
R_Name_screen = " Область поиска значка Инвентаря "
R_text_Cut = " 1 "
Text_Raspoznavanie_korrect = " "
initialarray ( # Text_Raspoznavanie_char'Н' [ 0 ] , 0 )
X_Raspoznavanie_nach = 2110
Y_Raspoznavanie_nach = 360
X_Raspoznavanie_okonch = 2156
Y_Raspoznavanie_okonch = 400
ReadText ( 1 , # Screen'-842150451' [ 0 ] [ 0 ] , # W_Kib , W_Kib.leftclient'0' , W_Kib.topclient'0' , 400 , pathfolder ( ) + " \Бот для БДО\Заточка вручную\Base_icon_inventar.sib " , # Text_Raspoznavanie'' , # K_Raspoznavanie'-842150451' , # X_Raspoznavanie'-842150451' [ 0 ] , # Y_Raspoznavanie'-842150451' [ 0 ] , # sX_S'-842150451' [ 0 ] , # sY_S'-842150451' [ 0 ] , # Cor_Raspoznavanie'-6277438562204192500000000000000000000000000000000000000000000000000.0' [ 0 ] , # Type_S'-842150451' [ 0 ] , # K_Str'-842150451' , # Text_Str'' [ 0 ] , # X_Str'-842150451' [ 0 ] , # Y_Str'-842150451' [ 0 ] , 0 , 0 , 1 , 0 , 8 , 1 , 15 , - 1 , - 1 , 0 , # Col_T0'0' [ 0 ] , 0 , 0 , # Kol_F0'255' [ 0 ] , 0 , 5 , 50 , X_Raspoznavanie_nach'2110' , Y_Raspoznavanie_nach'360' , X_Raspoznavanie_okonch'2156' , Y_Raspoznavanie_okonch'400' , - 1 , 0 )
disablesymbolbase ( ALL )
enablesymbolbase ( base'E:\ПРОГГИ\kibor_set\\ ... ase_icon_inventar.sib' )
pause ( p1'400' )
if ( GT'0' == 0 && GF'0' == 0 )
if ( ew'1' == 0 )
if ( ew'1' == 1 )
readtext ( g1'0' * RU + g2'0' * EN + g3'1' * NUM + g4'0' * MARK , # text'' , f'8' , s'1' , k'15' , d1'-1' , d2'-1' , - 1 , - 1 , 0 , i'50' , v_x'0' + ex1'2110' , v_y'0' + ey1'360' , v_x'0' + ex2'2156' , v_y'0' + ey2'400' , - 1 )
Прикладываю файл визуального редактора:(для просмотра ссылки Вам необходимо авторизоваться)
Остальные функции не проверял. RunPython использую, чтобы работать с Google-таблицей. Правда не пойму, в чем связь RunPython и ReadText, что после последнего вылетает.
UPD. Перезагрузил комп, заработало