# how to find all pink points?

## Recommended Posts

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?```

[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 on other sites

no one helping you yet

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 on other sites

no one helping you yet

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!!!!!

[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]

## Create an account

Register a new account

• ### Recently Browsing   0 members

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
×
• Create New...