Sign in to follow this  
Followers 0
Lunatic

Random delay for mouseclick?

4 posts in this topic

Been looking for a way to set up a script that will wait a random amount of time between mouse clicks, within a pre-defined range. (IE: Mouse click at random intervals ranging no less than 10ms and no more than 50ms.)

Anyone have any ideas? :)


[center][/center]

Share this post


Link to post
Share on other sites



Check the help file for Sleep() and Random().

:)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

Here's a little function I made to scare my wife

Func _newCoords()
    $delay = Random(1452, 5658)
    $mouse_x_loc = Random (72, 1248)
    $mouse_y_loc = Random (42, 909)
    $mouse_mv_spd = Random (30, 90)
    MouseMove($mouse_x_loc, $mouse_y_loc, $mouse_mv_spd)
    Sleep($delay)
EndFunc

You can simply change the MouseMove() function with MouseClick() and make some modification to you liking.


[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

Share this post


Link to post
Share on other sites

Got what I needed working. Thanks for the help guys.


[center][/center]

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