1
Архив / Re: Маленькая проблема
« on: August 17, 2019, 11:18:15 AM »
Тему можно закрывать, решил проблему, пример кода приложу:
п»ї// 16.08.2019
for($i=0, $i<10)
GETSCREEN
for($d=0, $d<4)
GETSCREEN
print($var)
END_CYC
WAITMS(1)
if(PXLXOR(696,655,983,688) = 2646305)
print($var)
$var = 1
else
print($var)
$var = 0
end_if
END_CYC
wait(3)
sub(my_func)
lclick(846,671)
wait(0.3)
lclick(689,415)
wait(0.3)
lclick(958,606)
wait(0.3)
lclick(841,415)
wait(0.3)
lclick(958,606)
wait(0.3)
lclick(982,415)
wait(0.3)
lclick(958,606)
wait(1)
end_sub
sub(my_func_2)
lclick(1252,728)
wait(1)
lclick(629,640)
wait(0.3)
lclick(734,640)
wait(0.1)
lclick(840,640)
wait(0.1)
lclick(942,640)
wait(0.1)
lclick(1053,640)
wait(1)
end_sub
if($var=1)
my_func()
wait(1)
else
my_func_2()
end_if
п»ї// 16.08.2019
for($i=0, $i<10)
GETSCREEN
for($d=0, $d<4)
GETSCREEN
print($var)
END_CYC
WAITMS(1)
if(PXLXOR(696,655,983,688) = 2646305)
print($var)
$var = 1
else
print($var)
$var = 0
end_if
END_CYC
wait(3)
sub(my_func)
lclick(846,671)
wait(0.3)
lclick(689,415)
wait(0.3)
lclick(958,606)
wait(0.3)
lclick(841,415)
wait(0.3)
lclick(958,606)
wait(0.3)
lclick(982,415)
wait(0.3)
lclick(958,606)
wait(1)
end_sub
sub(my_func_2)
lclick(1252,728)
wait(1)
lclick(629,640)
wait(0.3)
lclick(734,640)
wait(0.1)
lclick(840,640)
wait(0.1)
lclick(942,640)
wait(0.1)
lclick(1053,640)
wait(1)
end_sub
if($var=1)
my_func()
wait(1)
else
my_func_2()
end_if