Jump to content
Sign in to follow this  
MasonMill

Random Send

Recommended Posts

MasonMill

Hey Guys(and Gals),

Just wondering if there is a way to make a random sleep time within two time intervals.

Say like this,

Send("q")

sleep(5000-8000)

I know that's not correct but you get the idea. Just wanting it to click the q key at a random time between 5 and 8 seconds. Any input would help, thanks!

Share this post


Link to post
Share on other sites
colafrysen

Sleep(Random (5000,8000)) ?

Edit: Also, if you would have searched The helpfile for "random" you would have found the command in just a sec. You should really take advantage of the helpfile, it's one of the things that make AutoIT so great

Edited by colafrysen

[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]

Share this post


Link to post
Share on other sites
MasonMill

Ah, thank you very much. Yes I will go read up on it in the help file now for the more advanced features if any right now. Thanks again!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.