Sign in to follow this  
Followers 0
butji

need help mouse thingey.....

4 posts in this topic

okay heres what i got ^^

CODE
if MouseDown("left") Then

Do

MouseClick( "left")

sleep(1000)

Until MouseUp("left")

EndIf

what i want it to do:

i want it to press left mouse key thingey every 1 second when i hold down left mouse key

Share this post


Link to post
Share on other sites



did you even read what MouseDown does?

Perform a mouse down event at the current mouse position.

look at _IsPressed

Share this post


Link to post
Share on other sites

Can't do it with the same button as the trigger as what you want it to spam, try this, works with right click instead of left click.

#include <Misc.au3>

While 1
    If _IsPressed(02) Then
        While _IsPressed(02)
            Mouseclick("left")
            ToolTip("Spamming",0,0)
        WEnd
    EndIf
    ToolTip("",0,0)
WEnd

Share this post


Link to post
Share on other sites

neato :P ty

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