Jump to content
Sign in to follow this  
haXor4life

Mouseclick question

Recommended Posts

haXor4life

I can't do it, please help.

I want when I press left mouse button to send infinite mouse clicks let's say each 1/3 second. And when I release it sending should stop. Help please. It's very hard for me.

Share this post


Link to post
Share on other sites
haXor4life

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1

Sleep ( 250 )

If _IsPressed("01", $dll) Then

_IsPressed("01", $dll)

ExitLoop

EndIf

WEnd

DllClose($dll)

It doesn't work

Edited by haXor4life

Share this post


Link to post
Share on other sites
AdmiralAlkex

It would be more like this:

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    Sleep(333)
    If _IsPressed("05", $dll) Then
        MouseClick("left")
        ContinueLoop
    EndIf
WEnd

Share this post


Link to post
Share on other sites
AdmiralAlkex

Kind sir it doesn't work. It seems to make one click after I press button but then stops.

Last try.

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    Sleep(333)
    If _IsPressed("01", $dll) Then
        MouseUp("left")
        MouseDown("left")
        ContinueLoop
    EndIf
WEnd

Share this post


Link to post
Share on other sites
haXor4life

Last try.

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    Sleep(333)
    If _IsPressed("01", $dll) Then
        MouseUp("left")
        MouseDown("left")
        ContinueLoop
    EndIf
WEnd

Thank you, God.

But it doesn't work in my gaem.

I fixed it with this.

MouseUp("left")

Sleep (100)

MouseDown("left")

Edited by haXor4life

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  

×