Jump to content
Sign in to follow this  
SamCanShark

How would I do this?

Recommended Posts

SamCanShark

How would I make it so if you left clicked, it would have a 30% chance to left click again?

Share this post


Link to post
Share on other sites
Bert

ummm...why would you need such a thing? Now before we go further - if it is for a game, and seeing your new - game automation is against forum rules. Now if it isn't, I would love to know why you need such a function.

Lets start with what you are trying to automate. We may have a script ready to go so you don't need to code anything.

Share this post


Link to post
Share on other sites
JohnOne

Probably the simplest way

While 3
    If _IsPressed("01") Then
        If Random(1, 100, 1) <= 30 Then
            MouseClick("Left")
        EndIf
    EndIf
    Sleep(10)
WEnd

 


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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  

×