[HELP] Translate Autoit script to hiro makro ?

05/30/2020 23:19 staRRFreak#1
Hallo Redditers,

i wrote a smal autoit script for a game thats repeat the same actions but now i want it to run on the android emulator. i have download hiro makro but i dont know how to script whits it,
can someone help me to translate it ?


Code:
$mspeed = 1

While 1
           Sleep(53000)
   MouseClick("left", 430, 230, 1, $mspeed)
	  Sleep(500)
   MouseClick("left", 960, 630, 1, $mspeed)
	  Sleep(500)
   MouseClick("left", 960, 630, 1, $mspeed)
           sleep(4000)
         _color()
	  Sleep(100)
   MouseClick("left", 430, 790, 1, $mspeed)
	  Sleep(500)
   MouseClick("left", 750, 450, 1, $mspeed)
	  Sleep(500)
   MouseClick("left", 1100, 740, 1, $mspeed)
	  Sleep(500)
   MouseClick("left", 1400, 380, 1, $mspeed)
	  sleep(500)
   MouseClick("left", 950, 640, 1, $mspeed)
	  Sleep(500)
   MouseClick("left", 1450, 230, 1, $mspeed)
	  Sleep(500)
   MouseClick("left", 900, 360, 1, $mspeed)
	  Sleep(500)
   MouseClick("left", 1000, 620, 1, $mspeed)
Sleep(500)
WEnd


Func _color()
While 1
   $colorcheck = PixelGetColor(611,209)
   Sleep(50)
if $colorcheck = 0x092531 Then
	Sleep(100)
   $pos = PixelSearch ( 386, 196, 1528, 839, 0xFDFDFD)
   Sleep(100)
   MouseClick( "left" , $pos[0], $pos[1], 1, 50)
   Sleep(400)
Else
ExitLoop
EndIf
WEnd
EndFunc
i know i have to change every cordinate but what matters mose it the
Code:
function _color()
basicly after the 3. click the game returns to the main screen and this game have some anti bot function after a while playing it will show some random colorfull bubbles whits CLICK written on it on random places on the screen. the main menü gets darker and the bubbles shows up
Code:
$colorcheck = PixelGetColor(611,209)
   Sleep(50)
if $colorcheck = 0x092531 Then
check for the pixel if the color matches if yes,
Code:
$pos = PixelSearch ( 386, 196, 1528, 839, 0xFDFDFD)
   Sleep(100)
   MouseClick( "left" , $pos[0], $pos[1], 1, 50)
then it will search on the screen for the Text in the bubbles color wich is always this white tone
on this point only the bubbles are highlited and click on them
and it will repeat undtill
Code:
if $colorcheck = 0x092531 Then
dosnt match
Code:
Else
ExitLoop
and it will contin clicking on the screen

hope someone can help me