AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

From the beggining, a countdown clock.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Robbo



Joined: 27 Jul 2008
Posts: 47
Location: England

PostPosted: Sun Sep 27, 2009 7:41 pm    Post subject: From the beggining, a countdown clock. Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
ruespe



Joined: 17 Jun 2008
Posts: 243

PostPosted: Sun Sep 27, 2009 8:24 pm    Post subject: Reply with quote

Try searching for "countdown"
_________________
Greetings
Rog
Back to top
View user's profile Send private message
The Beast



Joined: 27 Sep 2009
Posts: 20

PostPosted: Sun Sep 27, 2009 8:47 pm    Post subject: Reply with quote

Look here the 3rd result may be most helpful http://www.autohotkey.com/forum/search.php?mode=results

EDIT: See below.


Last edited by The Beast on Sun Sep 27, 2009 8:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Sun Sep 27, 2009 8:57 pm    Post subject: Reply with quote

The Beast wrote:
Look here the 3rd result may be most helpful http://www.autohotkey.com/forum/search.php?mode=results

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
View user's profile Send private message Visit poster's website
The Beast



Joined: 27 Sep 2009
Posts: 20

PostPosted: Sun Sep 27, 2009 8:59 pm    Post subject: Reply with quote

That sucks... Try this thread.
Back to top
View user's profile Send private message
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Sun Sep 27, 2009 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
The Beast



Joined: 27 Sep 2009
Posts: 20

PostPosted: Sun Sep 27, 2009 9:10 pm    Post subject: Reply with quote

Agreed.
I was eating so was semi-distracted just picked first choice.
Back to top
View user's profile Send private message
Robbo



Joined: 27 Jul 2008
Posts: 47
Location: England

PostPosted: Sun Sep 27, 2009 9:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Z_Gecko
Guest





PostPosted: Sun Sep 27, 2009 10:05 pm    Post subject: Reply with quote

check the help for EnvSub and EnvAdd
Back to top
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Sun Sep 27, 2009 10:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group