Masheen Posted April 20, 2016 Author Share Posted April 20, 2016 it work too $myX=0 $myY=0 $aPosRed = PixelSearch($myX,$myY ,@DesktopWidth ,@DesktopHeight, 0xED1C24) if IsArray($aPosRed) Then $aPosYellow = PixelSearch($aPosRed[0]+1,$aPosRed[1],$aPosRed[0]+1,$aPosRed[1], 0xFFF200) If IsArray($aPosYellow) Then $aPosGreen = PixelSearch($aPosYellow[0]+1,$aPosYellow[1],$aPosYellow[0]+1,$aPosYellow[1], 0x22B14C) If IsArray($aPosGreen) Then MsgBox(0,"","GOOD") EndIf EndIf EndIf Link to comment Share on other sites More sharing options...
Masheen Posted April 20, 2016 Author Share Posted April 20, 2016 maybe someone knows the code more correct. plz anyone edit me $myX=0 $myY=0 ;GYR $check=0 do $aPosRed = PixelSearch($myX,$myY ,@DesktopWidth ,@DesktopHeight, 0x22b14c) ;Red if IsArray($aPosRed) Then MsgBox(0,"","Green") $aPosYellow = PixelSearch($aPosRed[0]+1,$aPosRed[1],$aPosRed[0]+1,$aPosRed[1], 0xfff200) ;Yellow $myX=$aPosRed[0]+1 $myY=$aPosRed[1]+1 If IsArray($aPosYellow) Then MsgBox(0,"","yellow") $aPosGreen = PixelSearch($aPosYellow[0]+1,$aPosYellow[1],$aPosYellow[0]+1,$aPosYellow[1], 0xed1c24) ;Green If IsArray($aPosGreen) Then $check=0 MouseMove($aPosGreen[0],$aPosGreen[1]) MsgBox(0,"","GOOD") EndIf EndIf EndIf Until $check=1 Link to comment Share on other sites More sharing options...
Masheen Posted April 20, 2016 Author Share Posted April 20, 2016 Ok, it solved , if someone need this code here it is HotKeySet("{ESC}",quit) $myX=0 $myY=0 do $aPosRed = PixelSearch($myX,$myY ,@DesktopWidth ,@DesktopHeight, 0x22b14c) ;Red if IsArray($aPosRed) Then $aPosYellow = PixelSearch($aPosRed[0]+1,$aPosRed[1],$aPosRed[0]+1,$aPosRed[1], 0xfff200) ;Yellow If IsArray($aPosYellow) Then $aPosGreen = PixelSearch($aPosYellow[0]+1,$aPosYellow[1],$aPosYellow[0]+1,$aPosYellow[1], 0xed1c24) ;Green If IsArray($aPosGreen) Then MouseMove($aPosGreen[0],$aPosGreen[1]) $aPosRed[1]=0 EndIf EndIf $myY+=$aPosRed[1]+1 EndIf Until not IsArray($aPosRed) Func quit() TrayTip("Masheen Macro", "Макрос остановлен", 0,1) Exit EndFunc Link to comment Share on other sites More sharing options...
Bert Posted April 21, 2016 Share Posted April 21, 2016 Você está usando documentos do Excel ou do Google para executar esta tarefa? Se sim, então AutoIt tem muito melhores métodos para fazer o que você precisa. Se não, então o que é o nome do aplicativo que você está tentando automatizar? Parece muito estranho você tem um psreadsheet que tem apenas linhas 1 pixel de altura. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Masheen Posted April 22, 2016 Author Share Posted April 22, 2016 On 21.04.2016 at 4:22 PM, Bert said: Você está usando documentos do Excel ou do Google para executar esta tarefa? Se sim, então AutoIt tem muito melhores métodos para fazer o que você precisa. Se não, então o que é o nome do aplicativo que você está tentando automatizar? Parece muito estranho você tem um psreadsheet que tem apenas linhas 1 pixel de altura. no its not exel or google. its forex. no joke Link to comment Share on other sites More sharing options...
Bert Posted April 25, 2016 Share Posted April 25, 2016 ok, desde que eu estou vendo com este aplicativo, você tem que operar esta aplicação em um navegador web. Estou correcto? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now