but i needed this. and i thought id share it.
syntax is the same as PixelSearch
return[0] = the found pixel color
return[1] = x coord
return[2] = y coord
Func _iPixelSearch($i_left, $i_top, $i_right, $i_bottom, $i_color, $i_shade = 0, $i_step = 1) Local $av_ret[3] Local $ai_coords = PixelSearch($i_left, $i_top, $i_right, $i_bottom, $i_color, $i_shade, $i_step) If @error Then Return 0 EndIf $av_ret[0] = PixelGetColor($ai_coords[0], $ai_coords[1]) $av_ret[1] = $ai_coords[0] $av_ret[2] = $ai_coords[1] Return $av_ret EndFunc;==>_iPixelSearch
Attached Files
Edited by w0uter, 31 May 2006 - 02:34 PM.







