Jump to content

Recommended Posts

Posted

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.

Posted (edited)

#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
Posted

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

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
×
×
  • Create New...