Jump to content
Sign in to follow this  
Cloudsx

little pixelsearch bot for an game

Recommended Posts

Cloudsx

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

Share this post


Link to post
Share on other sites
Paulie

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

Share this post


Link to post
Share on other sites
Cloudsx

oke great but the window is 800*600 how do i make him search an pixel in a certain window

Share this post


Link to post
Share on other sites
intelPiggy

u can always start autoit window info to see the "certain" window

or u can use

PixelSearch(0,0,@DesktopWidth,@DesktopHeight,colourcode)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.