2words4uready Posted July 17, 2008 Share Posted July 17, 2008 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 More sharing options...
2words4uready Posted July 17, 2008 Author Share Posted July 17, 2008 some plz help me its sorta urgent Link to comment Share on other sites More sharing options...
ofLight Posted July 17, 2008 Share Posted July 17, 2008 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 Link to comment Share on other sites More sharing options...
2words4uready Posted July 17, 2008 Author Share Posted July 17, 2008 sleep(5000) $search = PixelSearch(0, 0, 1279, 799, 16777215) If Not @error Then MouseMove($search[0],$search[1]) EndIfthankyou that worked perfectly Link to comment Share on other sites More sharing options...
2words4uready Posted July 17, 2008 Author Share Posted July 17, 2008 also is there a way to make the mouse navagate to a particular shape Link to comment Share on other sites More sharing options...
Kiti Posted July 17, 2008 Share Posted July 17, 2008 also is there a way to make the mouse navagate to a particular shapeNo, 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! muttleyRegards,Kiti Think outside the box.My Cool Lego Technic Website -- see walking bipeds and much more!My YouTube account -- see cool physics experimentsMy scripts:Minesweeper bot: Solves advanced level in 1 second (no registry edit), very improved GUI, 4 solving stylesCan't go to the toilet because of your kids closing your unsaved important work? - Make a specific window uncloseableCock Shooter Bot -- 30 headshots out of 30 Link to comment Share on other sites More sharing options...
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