# PixelSearch() continue from first find?

## Recommended Posts

```\$coord = PixelSearch(0, 0, 800, 550, \$Purple_Color, 1, 1)
If Not @error Then
\$x = \$coord[0]
\$y = \$coord[1]
If PixelGetColor(\$x + 2, \$y) = \$Purple_Color Then
If PixelGetColor(\$x + 3, \$y) = \$Purple_Color Then
\$Check = PixelSearch(\$x - 16, \$y - 2, \$x - 11, \$y + 5, \$XUNIQUES_Color, 1, 1)
If Not @error Then
Send(\$Tele_Key)
Sleep(100)
Mouseclick("right", \$x - 25, \$y,1,2)
\$coord = PixelSearch(0, 0, 800, 550, \$Purple_Color, 1, 1)
If Not @error Then
\$x2 = \$coord[0]
\$y2 = \$coord[1]
If PixelGetColor(\$x2 + 2, \$y2) = \$Purple_Color Then
If PixelGetColor(\$x2 + 3, \$y2) = \$Purple_Color Then
\$Check = PixelSearch(\$x2 - 16, \$y2 - 2, \$x2 - 11, \$y2 + 5, \$XUNIQUES_Color, 1, 1)
If Not @error Then
Mouseclick("left",\$x2 - 16, \$y2,1,2)
EndIf
EndIf
EndIf
EndIf
Else
\$coord = PixelSearch(0, \$y + 1, 800, 550, \$Purple_Color, 1, 1)
If Not @error Then
\$x = \$coord[0]
\$y = \$coord[1]
If PixelGetColor(\$x + 2, \$y) = \$Purple_Color Then
If PixelGetColor(\$x + 3, \$y) = \$Purple_Color Then
\$Check = PixelSearch(\$x - 16, \$y - 2, \$x - 11, \$y + 5, \$XUNIQUES_Color, 1, 1)
If Not @error Then
Send(\$Tele_Key)
Sleep(100)
Mouseclick("right", \$x - 25, \$y,1,2)
\$coord = PixelSearch(0, 0, 800, 550, \$Purple_Color, 1, 1)
If Not @error Then
\$x22 = \$coord[0]
\$y22 = \$coord[1]
If PixelGetColor(\$x22 + 2, \$y2) = \$Purple_Color Then
If PixelGetColor(\$x2 + 3, \$y2) = \$Purple_Color Then
\$Check = PixelSearch(\$x2 - 16, \$y2 - 2, \$x2 - 11, \$y2 + 5, \$x2UNIQUES_Color, 1, 1)
If Not @error Then
Mouseclick("left",\$x2 - 16, \$y2,1,2)
EndIf
EndIf
EndIf
EndIf
ElseoÝ÷ ØÞyØ­¶zj·!x¢¹¨­ên®^iû^®+lyên®^¶»-¶)nëlyë-«b¶+'¢Ö®*®z+^ ÙèÂ'âµø§vÊn®^jwb¶Éè¶éâªç­éâ¶
½±½È°Ä°Ä¤(\$%%9½ÐÉÉ½ÈQ¡¸(\$\$\$ÀÌØíàôÀÌØí½½ÉlÁt(\$\$\$ÀÌØíäôÀÌØí½½ÉlÅt(\$\$%%A¥á±Ñ
½±½È ÀÌØíà¬È°ÀÌØíä¤ôÀÌØíAÕÉÁ±}
½±½ÈQ¡¸(\$\$\$%%A¥á±Ñ
½±½È ÀÌØíà¬Ì°ÀÌØíä¤ôÀÌØíAÕÉÁ±}
½±½ÈQ¡¸(\$\$\$\$\$ÀÌØí
¡¬ôA¥á±MÉ  ÀÌØíà´ÄØ°ÀÌØíä´È°ÀÌØíà´ÄÄ°ÀÌØíä¬Ô°ÀÌØíaU9%EUM}
½±½È°Ä°Ä¤(\$\$\$\$%%9½ÐÉÉ½ÈQ¡¸(\$\$\$\$\$%M¹ ÀÌØíQ±}-ä¤(\$\$\$\$\$%M±À ÄÀÀ¤(\$\$\$\$\$%5½ÕÍ±¥¬ ÅÕ½ÐíÉ¥¡ÐÅÕ½Ðì°ÀÌØíà´ÈÔ°ÀÌØíä°Ä°È¤(\$\$\$\$\$\$ÀÌØí½½ÉôA¥á±MÉ  À°À°àÀÀ°ÔÔÀ°ÀÌØíAÕÉÁ±}
½±½È°Ä°Ä¤(\$\$\$\$\$%%9½ÐÉÉ½ÈQ¡¸(\$\$\$\$\$\$\$ÀÌØíàÈôÀÌØí½½ÉlÁt(\$\$\$\$\$\$\$ÀÌØíäÈôÀÌØí½½ÉlÅt(\$\$\$\$\$\$%%A¥á±Ñ
½±½È ÀÌØíàÈ¬È°ÀÌØíäÈ¤ôÀÌØíAÕÉÁ±}
½±½ÈQ¡¸(\$\$\$\$\$\$\$%%A¥á±Ñ
½±½È ÀÌØíàÈ¬Ì°ÀÌØíäÈ¤ôÀÌØíAÕÉÁ±}
½±½ÈQ¡¸(\$\$\$\$\$\$\$\$\$ÀÌØí
¡¬ôA¥á±MÉ  ÀÌØíàÈ´ÄØ°ÀÌØíäÈ´È°ÀÌØíàÈ´ÄÄ°ÀÌØíäÈ¬Ô°ÀÌØíaU9%EUM}
½±½È°Ä°Ä¤(\$\$\$\$\$\$\$\$%%9½ÐÉÉ½ÈQ¡¸(\$\$\$\$\$\$\$\$\$%5½ÕÍ±¥¬ ÅÕ½Ðí±ÐÅÕ½Ðì°ÀÌØíàÈ´ÄØ°ÀÌØíäÈ°Ä°È¤(\$\$\$\$\$\$\$\$%¹%(\$\$\$\$\$\$\$%¹%(\$\$\$\$\$\$%¹%(\$\$\$\$\$%¹%(\$\$\$\$%±Í(\$\$\$\$\$\$ÀÌØí½½ÉôA¥á±MÉ  À°ÀÌØíä¬Ä°àÀÀ°ÔÔÀ°ÀÌØíAÕÉÁ±}
½±½È°Ä°Ä¤(\$\$\$\$\$%%9½ÐÉÉ½ÈQ¡¸(\$\$\$\$\$\$\$ÀÌØíàôÀÌØí½½ÉlÁt(\$\$\$\$\$\$\$ÀÌØíäôÀÌØí½½ÉlÅt(\$\$\$\$\$\$%%A¥á±Ñ
½±½È ÀÌØíà¬È°ÀÌØíä¤ôÀÌØíAÕÉÁ±}
½±½ÈQ¡¸(\$\$\$\$\$\$\$%%A¥á±Ñ
½±½È ÀÌØíà¬Ì°ÀÌØíä¤ôÀÌØíAÕÉÁ±}
½±½ÈQ¡¸(\$\$\$\$\$\$\$\$\$ÀÌØí
¡¬ôA¥á±MÉ  ÀÌØíà´ÄØ°ÀÌØíä´È°ÀÌØíà´ÄÄ°ÀÌØíä¬Ô°ÀÌØíaU9%EUM}
½±½È°Ä°Ä¤(\$\$\$\$\$\$\$\$%%9½ÐÉÉ½ÈQ¡¸(\$\$\$\$\$\$\$\$\$%M¹ ÀÌØíQ±}-ä¤(\$\$\$\$\$\$\$\$\$%M±À ÄÀÀ¤(\$\$\$\$\$\$\$\$\$%5½ÕÍ±¥¬ ÅÕ½ÐíÉ¥¡ÐÅÕ½Ðì°ÀÌØíà´ÈÔ°ÀÌØíä°Ä°È¤(\$\$\$\$\$\$\$\$\$\$ÀÌØí½½ÉôA¥á±MÉ  À°À°àÀÀ°ÔÔÀ°ÀÌØíAÕÉÁ±}
½±½È°Ä°Ä¤(\$\$\$\$\$\$\$\$\$%%9½ÐÉÉ½ÈQ¡¸(\$\$\$\$\$\$\$\$\$\$\$ÀÌØíàÈÈôÀÌØí½½ÉlÁt(\$\$\$\$\$\$\$\$\$\$\$ÀÌØíäÈÈôÀÌØí½½ÉlÅt(\$\$\$\$\$\$\$\$\$\$%%A¥á±Ñ
½±½È ÀÌØíàÈÈ¬È°ÀÌØíäÈ¤ôÀÌØíAÕÉÁ±}
½±½ÈQ¡¸(\$\$\$\$\$\$\$\$\$\$\$%%A¥á±Ñ
½±½È ÀÌØíàÈ¬Ì°ÀÌØíäÈ¤ôÀÌØíAÕÉÁ±}
½±½ÈQ¡¸(\$\$\$\$\$\$\$\$\$\$\$\$\$ÀÌØí
¡¬ôA¥á±MÉ  ÀÌØíàÈ´ÄØ°ÀÌØíäÈ´È°ÀÌØíàÈ´ÄÄ°ÀÌØíäÈ¬Ô°ÀÌØíàÉU9%EUM}
½±½È°Ä°Ä¤(\$\$\$\$\$\$\$\$\$\$\$\$%%9½ÐÉÉ½ÈQ¡¸(\$\$\$\$\$\$\$\$\$\$\$\$\$%5½ÕÍ±¥¬ ÅÕ½Ðí±ÐÅÕ½Ðì°ÀÌØíàÈ´ÄØ°ÀÌØíäÈ°Ä°È¤(\$\$\$\$\$\$\$\$\$\$\$\$%¹%(\$\$\$\$\$\$\$\$\$\$\$%¹%(\$\$\$\$\$\$\$\$\$\$%¹%(\$\$\$\$\$\$\$\$\$%¹%(\$\$\$\$\$\$\$\$\$```

Edited by narayanjr

## Create an account

Register a new account