Sign in to follow this  
Followers 0
2words4uready

PixelSearch Mouse Move

6 posts in this topic

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


READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites



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


There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Share this post


Link to post
Share on other sites

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


READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
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

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  
Followers 0