Lunatic Posted June 26, 2008 Share Posted June 26, 2008 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 More sharing options...
monoceres Posted June 26, 2008 Share Posted June 26, 2008 Check the help file for Sleep() and Random(). Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
aslani Posted June 26, 2008 Share Posted June 26, 2008 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 More sharing options...
Lunatic Posted June 27, 2008 Author Share Posted June 27, 2008 Got what I needed working. Thanks for the help guys. [center][/center] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now