mousehelp Posted December 2, 2009 Share Posted December 2, 2009 In a game, I'd like for the mouse to follow a certain color around when it moves. But when you're in the game your mouse coords constantly (I think..) sit at 512, 384, the middle of the screen. Finding the color works great. But when you attempt to change the mouse's coords you start spinning and/or shaking. Here is a video in case my description was lacking. http://www.youtube.com/watch?v=EdoqRrP696I In the first part or the video, I used what is written below \/ if _IsPressed($body) = 1 Then $pos = MouseGetPos() $coord = PixelSearch(($pos[0] - $radius) , ($pos[1] - $radius) , ($pos[0] + $radius) , ($pos[1] + $radius), $searchcolora, 80) If IsArray($coord) = 1 Then ;MouseClick('left', $coord[0], $coord[1], 1, 0) MouseMove ($coord[0] $coord[1], 10) EndIf EndIf In the second I just changed ($coord[0] $coord[1], 10) to (512, 383, 10) to see what would happen. Is there some other way to do what I'm trying to do? Or am I just doing it wrong in some way? Link to comment Share on other sites More sharing options...
JohnOne Posted December 2, 2009 Share Posted December 2, 2009 (edited) Not sure how much help you will get as bots are generally frowned upon But I can tell you this, in the line below you dont need "= 1" If IsArray($coord) = 1 Then Cant help you with the bot though I know zero about them, who knows you might get lucky, and regarding your video, it looks like its doing fine to me. EDIT: just remembered about a function called "Aimbot" Perhaps that could help you. Edited December 2, 2009 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
AgentSmith15 Posted December 2, 2009 Share Posted December 2, 2009 Does this still happen when you have the game full screen? [center][/center] Link to comment Share on other sites More sharing options...
mousehelp Posted December 2, 2009 Author Share Posted December 2, 2009 Does this still happen when you have the game full screen?Yes. 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