Jump to content

Recommended Posts

how can i make a script sleep in minutes?

Or make it read a input which the user puts in a minute (e.g. 1) how would i get a script to add the 3 zeros on the end.

Cheers

Ashww

X)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Projects: Account Control Wii style gui Bingo Caller - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -Want a website? Click here!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -I use my Blackberry Storm to browse the forum! Please be patient!- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Link to post
Share on other sites
  • Replies 44
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Developers

how can i make a script sleep in minutes?

Or make it read a input which the user puts in a minute (e.g. 1) how would i get a script to add the 3 zeros on the end.

Cheers

Ashww

X)

Is this a serious question and if so did you even try anything ?

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 post
Share on other sites

lol manadar :P your supposed to let them figure it out for them selves and hopefully they will learn something..... and BTW... we know about your bad ass math skillz...

Link to post
Share on other sites

I lol'd

The proper way to do this is like so:

_SleepMinutes(3)

Func _SleepMinutes($Mins)
For $i = 1 to $Mins*1000*60
Sleep(1)
Next
EndFunc
You do know that will run for 30 minutes? (or was that the point?) :P
Link to post
Share on other sites

If you replace Sleep with ConsoleWrite and output the number the max is 180000. Sleep each incrementation, 1*18000 = 18000 and divide that... Think about this.

There is no Sleep(1). All values between 1-9 will be 10 so it will be 3*1000*60*10 and that equals 30 minutes!! Edited by AdmiralAlkex
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...