Jump to content

Ekranda Görüntü Aramak


MertCanDinler
 Share

Recommended Posts

@MertCanDinler

Kısaca önce belirlediğin pixeli aratacak ve yanındaki pixellerin değerine bakacaksın.
Senin için bir örnek hazırladım. Biraz incele...

[codebox]Local $SetArrayPixel[3] = [0x8BA2B8,0x80D9FF,0x8ADEFF]
Local $GetPixsel = _PixelSearch($SetArrayPixel)

If @error = 0 Then MouseMove($GetPixsel[0], $GetPixsel[1], 0)

Func _PixelSearch($Pixsel_Array,$left = 0,$top = 0,$right = @DesktopWidth,$bottom = @DesktopHeight)
If IsArray($Pixsel_Array) = 0 Then Return SetError(1,0,0)

Local $Ubound = UBound($Pixsel_Array) -1

Local $I,$2, $GetPixsel, $Error
While 1
Sleep(50)
$Error = False
For $I = 1 to ($right + $bottom)
$GetPixsel = PixelSearch( $left, $top, $right, $bottom, $Pixsel_Array[0],0,1)
If @error Then
$Error = True
ExitLoop
EndIf

For $2 = 1 to $Ubound
If PixelGetColor($GetPixsel[0] + $2,$GetPixsel[1]) <> $Pixsel_Array[$2] Then
$Error = True
ExitLoop
EndIf
Next
ExitLoop
Next
If $Error = True Then ContinueLoop
Return $GetPixsel
Sleep(50)
WEnd
EndFunc[/codebox]

Link to comment
Share on other sites

@MertCanDinler

Ilgili renk değerlerini sen aramak istediğin yere göre değiştirmelisin. Yukarıdaki verdiğim örnekte, ilgili üç renk kodu yan yana aranmaktadır ve bulunca mouse oraya taşınmaktadır. Ben ilgii renk kodlarını almak için [b]Xinec ColorConverter[/b] programını kullanıyorum.
Bu konuda çok başarılı ve benim işimi görüyor... Upload ediyorum...

:download1:
[color="#0000FF"][u][b]http://bluelife.zxq.net/Files/Autoit/Tools/Pixel/xcc.rar[/b][/u][/color]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...