Sign in to follow this  
Followers 0
6105

how to find all pink points?

3 posts in this topic

#1 ·  Posted (edited)

if i do

$coord = PixelSearch("100, 100, 100, 100, pink)

;$coord[0] = X of random pink circle
;$coord[1] = Y of random pink circle

;but how to find all pink circles?

post-50212-1244318893_thumb.gif

Edited by toader

[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

no one helping you yet :D

well i wouldn't use PixelSearch() as it will only return the first point found, prob better to just do a nested for-next loop looking for the color pixels, something like this

#include <Array.au3>
Global $search_color = 0xffffff
Global $count = 0
Dim $catch[5][2]
For $x = 1 To 100
    For $y = 1 To 100
        If PixelGetColor($x, $y) = $search_color Then
            $catch[$count][0] = $x
            $catch[$count][1] = $y
            MsgBox(0, '', "x= " & $x & @CRLF & "Y= " & $y & @CRLF)
            $count += 1
        EndIf
    Next
Next
_ArrayDisplay($catch)
Exit

but dont forget that its finding pixel points not circles, if you want to find the mid point of circles then its a bit harder

Edited by JackDinn

Thx all,Jack Dinn.

 

JD's Auto Internet Speed Tester

JD's Clip Catch (With Screen Shot Helper)

Projects :- AutoIt - My projects

My software never has bugs. It just develops random features. :-D

Share this post


Link to post
Share on other sites

no one helping you yet :D

well i wouldn't use PixelSearch() as it will only return the first point found, prob better to just do a nested for-next loop looking for the color pixels, something like this

#include <Array.au3>
Global $search_color = 0xffffff
Global $count = 0
Dim $catch[5][2]
For $x = 1 To 100
    For $y = 1 To 100
        If PixelGetColor($x, $y) = $search_color Then
            $catch[$count][0] = $x
            $catch[$count][1] = $y
            MsgBox(0, '', "x= " & $x & @CRLF & "Y= " & $y & @CRLF)
            $count += 1
        EndIf
    Next
Next
_ArrayDisplay($catch)
Exit

VERY VERY VERY VERY VERY BIG THNKS!!!!! :D


[center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Don't utter a single word[/font][/center][center][font=courier new,courier,monospace]Die die die my darling[/font][/center][center][font=courier new,courier,monospace]Just shut your pretty mouth[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you again[/font][/center][center][font=courier new,courier,monospace]I'll be seeing you[/font][/center][center][font=courier new,courier,monospace]In hell[/font][/center]

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0