Jump to content

Random delay for mouseclick?


Recommended Posts

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]

Link to comment
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

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