6105 Posted June 6, 2009 Posted June 6, 2009 (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? Edited June 6, 2009 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]
JackDinn Posted June 6, 2009 Posted June 6, 2009 (edited) 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 June 6, 2009 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
6105 Posted June 6, 2009 Author Posted June 6, 2009 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]
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