Jump to content

PixelSearch Mouse Move


Recommended Posts

Im making a bot and i want the mouse to move to the pixel search coordinates

sleep(5000)
$search = PixelSearch(0, 0, 1279, 799, 16777215)
If Not @error Then
    MouseMove($search)
    
    EndIf

but i get this error

ERROR: MouseMove() [built-in] called with wrong number of args.
    MouseMove($search)

anyhelp

Link to comment
Share on other sites

also is there a way to make the mouse navagate to a particular shape

No, you can only use colours of certain pixels for 'mouse navigation'. You can though check multiple relative pixel coordinates, so for example if you have a screen splashed with drops of paint which are circles of 2 pixels in diameter, and a solid box of 30 pixels, you can check a pixel, and then the the next 5 left/right/up/down to it. You know that a drop is 4 pixels maximum in width, but your box is larger than that. If all 5 consecutive pixels are the right colour, then you've found your box. I hope you've understood my example! muttley

Regards,

Kiti

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...