AutoHotkey Community

It is currently May 26th, 2012, 9:57 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: September 27th, 2009, 8:41 pm 
Offline

Joined: July 27th, 2008, 7:31 am
Posts: 47
Location: England
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 9:24 pm 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
Try searching for "countdown"

_________________
Greetings
Rog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 9:47 pm 
Offline

Joined: September 27th, 2009, 8:23 pm
Posts: 20
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 September 27th, 2009, 9:59 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 9:57 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
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.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 9:59 pm 
Offline

Joined: September 27th, 2009, 8:23 pm
Posts: 20
That sucks... Try this thread.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 10:06 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
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.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 10:10 pm 
Offline

Joined: September 27th, 2009, 8:23 pm
Posts: 20
Agreed.
I was eating so was semi-distracted just picked first choice.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 10:57 pm 
Offline

Joined: July 27th, 2008, 7:31 am
Posts: 47
Location: England
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 11:05 pm 
check the help for EnvSub and EnvAdd


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2009, 11:12 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
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.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: dra, Exabot [Bot], JSLover, Leef_me, patgenn123, rbrtryn, Yahoo [Bot] and 53 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group