snoopy Posted January 29, 2009 Share Posted January 29, 2009 (edited) Code: $pixelcolor=PixelGetColor(73,83) ; MsgBox(0,"",$pixelcolor) ; $pixelSearch=PixelSearch(0,0,@DesktopWidth,@DesktopHeight,0xA2D48B) ; If IsArray($pixelSearch)=1 Then ; MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) ; EndIf ok... all I want to know is whats the point of putting the position as you can see on 1st line , if its gonna find the pixel anyway? if i allredy got the pixel 0xA2D48B is there aneed in the first line ? thank you Edited January 29, 2009 by snoopy Link to comment Share on other sites More sharing options...
Aceguy Posted January 29, 2009 Share Posted January 29, 2009 becasue your pixelsearch searches an area for the color you want, and returns the pixel location. pixelgetcolor returns the color of that specific pixel... so the are 2 very different [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
snoopy Posted January 29, 2009 Author Share Posted January 29, 2009 becasue your pixelsearch searches an area for the color you want, and returns the pixel location.pixelgetcolor returns the color of that specific pixel... so the are 2 very differentTnx m8 Link to comment Share on other sites More sharing options...
snoopy Posted January 29, 2009 Author Share Posted January 29, 2009 BTW code: $pixelcolor=PixelGetColor(57,45) MsgBox(0,"",$pixelcolor) $pixelSearch=PixelSearch(0,0,@DesktopWidth,@DesktopHeight,0xB4EC8F) If IsArray($pixelSearch)=1 Then MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) EndIf $pixelcolor=PixelGetColor(154,60) MsgBox(0,"",$pixelcolor) $pixelSearch=PixelSearch(0,0,@DesktopWidth,@DesktopHeight,0809C4 If IsArray($pixelSearch)=1 Then MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) how do i make that after the 1st was clicked do the 2nd search and click it? Link to comment Share on other sites More sharing options...
Aceguy Posted January 29, 2009 Share Posted January 29, 2009 (edited) try not to search you entire desktop for a single pixel, narrow your search down. how do i make that after the 1st was clicked do the 2nd search and click it? $pixelSearch=PixelSearch(0,0,@DesktopWidth,@DesktopHeight,0xB4EC8F) If IsArray($pixelSearch)=1 Then MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) EndIf $pixelSearch=PixelSearch(0,0,@DesktopWidth,@DesktopHeight,0809C4 ) If IsArray($pixelSearch)=1 Then MouseClick("left",$pixelSearch[0],$pixelSearch[1],1,0) Edited January 29, 2009 by Aceguy [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
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