Sign in to follow this  
Followers 0
mousehelp

How would you go about moving the mouse when the mousecoords do not actually change?

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Does this still happen when you have the game full screen?

Yes.

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