Jump to content

AutoIt holding left mouse button script.


BunionClad
 Share

Recommended Posts

Hello I need help trying to make a holding mouse click macro and not using tape.

I have an existing macro would let me click while having a pause key.

How might a modify this to do holding left clicks instead?

Sleep(5000);

Global $Paused

HotKeySet ("{PAUSE}","TogglePause")

While 1 < 2;

MouseClick("left");

MouseClick("left");

MouseClick("left");

MouseClick("left");

MouseClick("left");

MouseClick("left");

MouseClick("left");

MouseClick("left");

MouseClick("left");

Sleep(100);

WEnd

Func TogglePause($Paused)

$Paused = NOT $Paused

While $Paused

Sleep(1000)

ToolTip('Script Is "Paused"',0,0)

WEnd

ToolTip("")

EndFunc

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...