Jump to content

Recommended Posts

Posted

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

 

Posted

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

 

Posted

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

 

Posted

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.

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...