Jump to content

Mouseclick question


Recommended Posts

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
Link to comment
Share on other sites

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

Kind sir it doesn't work. It seems to make one click after I press button but then stops. Edited by haXor4life
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...