Jump to content

Calculated random sleep =0

Recommended Posts

Now I cant go 1 day without posting some kind of question. So here is the question of the day:

Is this possible?

And where would i find the info on it?

$t1 = InputBox("Test", "How many minutes would you like to sleep??", "")

; $t1 = iniread(@scriptdir, "test", "1", $answer)
$t2 = $t1 * 600000
$t3 = $t2 + 200000

msgbox(0, "test", "This is a test")

This is a little something i was working on with my son, and we are testing to see if it is possible to generate an input box and tie it to a random sleep command.

Thanks for any replies.

Cue ( the tinker ) adding the s is optional

Link to comment
Share on other sites

Im not quite sure i understand your question.


$t2 = $t1 * 600000 ; take off one Zero. its not Six Hundred Thousand. Its Sixty  Throusand, 60,000 = 1 min.
$t3 = $t2 + 200000

But your code should work fine.

Edited by Steveiwonder

They call me MrRegExpMan

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...