Jump to content

Random timer?


Wabbit
 Share

Recommended Posts

Hello! I'm new to AutoIT and scripting in general, but I am really amazed at this product! I could use some help on this:

How can I make a random time monitor? Something that would pick a random amount of minutes, say between 30 and 90, wait that amount of time, then complete the program?

Thanks!

Link to comment
Share on other sites

  • Developers

Hello! I'm new to AutoIT and scripting in general, but I am really amazed at this product! I could use some help on this:

How can I make a random time monitor? Something that would pick a random amount of minutes, say between 30 and 90, wait that amount of time, then complete the program?

Thanks!

this will pause randomly 30 to 90 minutes ...

sleep(Random(30,90)*60*1000)
Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

HI,

sleep is millisec that way you get minutes.

So long,

Mega

PS: To get minutes without sec look at the 3 parameter of Random!

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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