Sign in to follow this  
Followers 0
MajSlayer420

Need help with Timenow If command

5 posts in this topic

Hello,

I'm working on getting my program to do an action at a set time the user selects.

But I want to make it so if the user selects say 16:00:00 hours it will subtract 5 to 10 mins from this value for the check.

How can I take this user selected value of say 16:00:00 and make it say 15:55:00 for the test?

Thanks a bunch,

MajSlayer420

Share this post


Link to post
Share on other sites



$time = 1600000 ; whatever 16:00:00 equals or the user enters

$time = $time - 50000 ; supposed to be 5 minutes or whatever

Do

$time = $time - 1000

sleep(1000)

Until $time = 0


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

Thanks a ton SmokeON, that will work perfect

Nice code 2

MajSlayer420

Share this post


Link to post
Share on other sites

One more question please:)

What is a good way to get military time input from a user witin a GUI? I only need the hours to be adjustable.

I was thinking a pulldown menu but thats soo large, and Im not sure how to make one that would use say, the up and down arrow controls(sry new to autoit)

Anyhow if someone has a good way to get time input from the user let me know

Thanks again,

MajSlayer420

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  
Followers 0