Sign in to follow this  
Followers 0
BunionClad

AutoIt holding left mouse button script.

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Look what I found in the Helpfile. MouseDown


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Thank you now i have a working holding left click macro.

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