Jump to content
Sign in to follow this  
Guest finallyfantal

Help with time variables!

Recommended Posts

Guest finallyfantal

Ok, heres the situation:

First, I make an input box for hours. Then, I make an input box for minutes. Now, I want my script to loop for the amount of time input. How would I go about doing this?

Share this post


Link to post
Share on other sites

i dont completely understand wat you want to do ... something like .

$Hours = InputBox ( "Hours", "Enter the amount of hours." )
$Mins = InputBox ( "Minutes", "Enter the amount of minutes." )
$Secs = InputBox ( "Seconds", "Enter the amount of seconds." )
MsgBox(0,"Time",$Hours & ":" & $Mins & ":" & $Secs)

edit : misread sry .. i thought u said "Look" instead of "loop"

Edited by burrup

qq

Share this post


Link to post
Share on other sites

i dont completely understand wat you want to do ... something like .

$Hours = InputBox ( "Hours", "Enter the amount of hours." )
$Mins = InputBox ( "Minutes", "Enter the amount of minutes." )
$Secs = InputBox ( "Seconds", "Enter the amount of seconds." )
MsgBox(0,"Time",$Hours & ":" & $Mins & ":" & $Secs)

edit : misread sry .. i thought u said "Look" instead of "loop"

<{POST_SNAPBACK}>

try this

$Hours = InputBox ( "Hours", "Enter the amount of hours." )
$Mins = InputBox ( "Minutes", "Enter the amount of minutes." )

Do
 ; your code
Until @Hour = $Hours AND @Min = $Mins

@Hour is in 24 hr time .. so when you enter it into the input box make sure it is 24 hr ...eg instead of typing "8" .. you would type "20"


qq

Share this post


Link to post
Share on other sites
Guest finallyfantal

thanks!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...