Jump to content

little pixelsearch bot for an game


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...