Jump to content
Sign in to follow this  
Guest lanski

Rapid Mouse click

Recommended Posts

Guest lanski

I need to make a script.. to emulate left mouse clicks while I have the left mouse button down..

I want it to keep clicking every 93ms and then when i let go of it..

it will stop

Sounds simple but I cant find a way to

Do while MouseClick = Down or something..

I was going to try this

While $i = 3

AutoItSetOption("MouseClickDelay", 93);

MouseClick("left");

Wend

and have it so when u press the mouse down it makes $i = 3;

and if u let go of the mouse it changes it back to 0

Share this post


Link to post
Share on other sites
Guest lanski

HotKeySet(MouseDown("left"), "rapidFire")
HotKeySet(MouseUp("left"), "stopIt")
Dim $i

Func stopIt()
$i = 0
EndFunc

Func rapidFire()
$i = 3
EndFunc


While $i >= 2
AutoItSetOption("MouseClickDelay", 93)
MouseClick("left")
WEnd

This is what I tried nxt but it didnt even work..

Share this post


Link to post
Share on other sites
Guest lanski

guys I know im new at this but you dont have to out right ignore the post :)

Share this post


Link to post
Share on other sites
Guest lanski

This has been asked before... you cannot simulate an action while that very action is enacted.

while i hold the mouse button down I want the mouse button to come up... ummm then the mouse button is no longer down...  Really, it is a horrible twilight zone moment to hope for such things.

nobody ignored your post. we read it and became utterly confused trying to solve it...

btw, I do not know what came first, the chicken OR the egg...

Lar.

<{POST_SNAPBACK}>

Im glad u have a sense of humor..

Then is there a way to do it with a hotkey? because I still need a way to do it...

Share this post


Link to post
Share on other sites

Im glad u have a sense of humor..

Then is there a way to do it with a hotkey? because I still need a way to do it...

<{POST_SNAPBACK}>

I think you're looking at something like in CounterStrike syntax, "bind +key command(s)"

+key activates the command(s) while the key is held...

Try looking into the _ispressed UDF.

BAH...you beat me to it, Larry.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...