Cloudsx Posted May 6, 2007 Posted May 6, 2007 well i have made a little bot for an game i play that it wil use for the moments that i am away the bot must work trough a pixelsearch and and if he found the pixel that he move the mouse to the pixel coordinates and the mouse click with the special weapon but it does not work realy good he dont search the pixel neither he move the mouse so maybe some one can help me. there maybe some wrong thing like the x but the screen is little bit to big to search on one place so maybe this is good $coord = PixelSearch(x,x,x,x, 0xb5cb40 ) If Not @error Then mousemove($coord) mouseclick("right" ,$coord,,2,50) EndIf
Paulie Posted May 6, 2007 Posted May 6, 2007 well i have made a little bot for an game i play that it wil use for the moments that i am away the bot must work trough a pixelsearch and and if he found the pixel that he move the mouse to the pixel coordinates and the mouse click with the special weapon but it does not work realy good he dont search the pixel neither he move the mouse so maybe some one can help me. there maybe some wrong thing like the x but the screen is little bit to big to search on one place so maybe this is good Have you even read the helpfile? $coord = PixelSearch(x,x,x,x, 0xb5cb40 );btw "X"s will not work for coords If Not @error Then mouseclick("right" ,$coord[0], $coord[1], 2, 0) EndIf
Cloudsx Posted May 6, 2007 Author Posted May 6, 2007 oke great but the window is 800*600 how do i make him search an pixel in a certain window
intelPiggy Posted May 6, 2007 Posted May 6, 2007 u can always start autoit window info to see the "certain" window or u can use PixelSearch(0,0,@DesktopWidth,@DesktopHeight,colourcode)
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