| View previous topic :: View next topic |
| Author |
Message |
Robbo
Joined: 27 Jul 2008 Posts: 47 Location: England
|
Posted: Sun Sep 27, 2009 7:41 pm Post subject: From the beggining, a countdown clock. |
|
|
Hi all,
This is completely beyond me, so I thought I'd ask for some help. I want a GUI window to display a countdown timer. It counts down to a selected date and time. For example, I want it to count down the remaining time untill the 12th October at 19:00.
An online example is http://countdown.onlineclock.net/. Is it possible to do the same but with AHK?
Many thanks to anyone out there with some help! _________________ All scripts are untested unless otherwise mentioned. |
|
| Back to top |
|
 |
ruespe
Joined: 17 Jun 2008 Posts: 243
|
Posted: Sun Sep 27, 2009 8:24 pm Post subject: |
|
|
Try searching for "countdown" _________________ Greetings
Rog |
|
| Back to top |
|
 |
The Beast
Joined: 27 Sep 2009 Posts: 20
|
|
| Back to top |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Sun Sep 27, 2009 8:57 pm Post subject: |
|
|
You can't provide a results link like this. _________________ "Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried."
Antonio França
My stuff: Google Profile |
|
| Back to top |
|
 |
The Beast
Joined: 27 Sep 2009 Posts: 20
|
Posted: Sun Sep 27, 2009 8:59 pm Post subject: |
|
|
| That sucks... Try this thread. |
|
| Back to top |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Sun Sep 27, 2009 9:06 pm Post subject: |
|
|
I also searched for "countdown" and I think it's better to suggest
this topic as a starting point, since the code is much more simple. _________________ "Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried."
Antonio França
My stuff: Google Profile |
|
| Back to top |
|
 |
The Beast
Joined: 27 Sep 2009 Posts: 20
|
Posted: Sun Sep 27, 2009 9:10 pm Post subject: |
|
|
Agreed.
I was eating so was semi-distracted just picked first choice. |
|
| Back to top |
|
 |
Robbo
Joined: 27 Jul 2008 Posts: 47 Location: England
|
Posted: Sun Sep 27, 2009 9:57 pm Post subject: |
|
|
Thanks guys, just a few small problems. I know how to do that pretty much. I want to count down the time from a certain date and time to a certain date and time.
Eg.
Right now it is 19:57 on the 14/07/09
The time and date selected is 20:00 on the 16/07/09
I want a countdown timer that works out the the differance in time (in this case it is 02:00:03:00 (Days:Hours:Minutes:Seconds).
Can you work out 02:00:03:00 and make it countdown untill 00:00:00:00? Hope you understand what I'm saying!
Thanks in advance. _________________ All scripts are untested unless otherwise mentioned. |
|
| Back to top |
|
 |
Z_Gecko Guest
|
Posted: Sun Sep 27, 2009 10:05 pm Post subject: |
|
|
| check the help for EnvSub and EnvAdd |
|
| Back to top |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Sun Sep 27, 2009 10:12 pm Post subject: |
|
|
You should be able to figure it out via FormatTime.
Example:
| Code: | From = 200907141957
To = 200907162000
msgbox % To - From |
_________________ "Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried."
Antonio França
My stuff: Google Profile |
|
| Back to top |
|
 |
|