DonationCoder.com Forum

DonationCoder.com Software => Coding Snacks => Finished Programs => Topic started by: Smobu on October 17, 2010, 01:20 PM

Title: DONE: Time each Timer
Post by: Smobu on October 17, 2010, 01:20 PM
I'm looking a stop watch program that can keep track of multiple times.
I tried MultiTimer (http://www.download3000.com/download_8670.html) but this program lacks the hotkeys to effectively stop and start each timer.
If someone can create a program similar to Multitimer but with hotkeys then I will like to
assign 1 through 0 to toggle each timer to start and pause and resume if pressed.
ctrl 1 through 0 will clear the each timer's elapsed time.
Title: Re: DONE: Time each Timer
Post by: MilesAhead on October 17, 2010, 06:10 PM
I don't know how MT works, but I'm assuming if it doesn't have hotkeys then you click in each control to start/stop/pause timer?

If so, it's pretty easy and a fun experience to make a hotkey that does a mouse click to a certain control in a certain program.  You can get free tools and guidance here:

http://www.autohotkey.com/forum/index.php

The AHK script engine and tools come with a "spy" program so that you can get the window and control names and classes. That enables you to zero in with the mouse click.  People on the AHK forum will help you if you tell 'em it's your first script.

Title: Re: DONE: Time each Timer
Post by: skwire on October 24, 2010, 11:55 AM
Here you go, Smobu:  Ten Timer download (http://skwire.dcmembers.com/apps/snacks/TenTimer.zip)

[ You are not allowed to view attachments ]

It's not nearly as attractive as the MultiTimer application you referenced in your initial post but I think it'll get the job done for you.  

Details:


Any timer name text you set in the edit field is saved from session to session.  Saving the actual timer values can be easily added, too.  Let me know if this will work for your purposes.  Thanks.
Title: Re: DONE: Time each Timer
Post by: Smobu on October 24, 2010, 12:15 PM
Thanks, this is good. 8) I notice a delay of about a second when pressing the hotkey to resume though.
Title: Re: DONE: Time each Timer
Post by: skwire on October 24, 2010, 12:19 PM
I notice a delay of about a second when pressing the hotkey to resume though.

Call it a result of my code design for this application.  If you find it too bothersome, I can refactor the code.
Title: Re: DONE: Time each Timer
Post by: Smobu on October 24, 2010, 12:23 PM
It would be great if you could do so.
Title: Re: DONE: Time each Timer
Post by: skwire on October 27, 2010, 01:10 PM
Sorry for the delay.  See if this version suits you better.  Ten Timer download (http://skwire.dcmembers.com/apps/snacks/TenTimer.zip)

[ You are not allowed to view attachments ]
Title: Re: DONE: Time each Timer
Post by: Smobu on October 27, 2010, 05:01 PM
This version does the job well.
Title: Re: DONE: Time each Timer
Post by: Dezzper on January 24, 2012, 12:10 PM
Excellent. I was looking for a similar program. But...
Could you add the ability to control timers from the command line (so one can make a shortcut or start the timer from other programs)?

Also, there is a slight inaccuracy in Help (help.txt):
in paragraph "2) Hotkeys" the countup timer is mentioned four times:
    1) Ctrl+1 through Ctrl+0 will start/stop the first ten countup timers.
    2) Ctrl-Shift+1 through Ctrl-Shift+0 will reset the first ten countup timers.
    3) Alt+1 through Alt+0 will start/stop the first ten countup timers.
    4) Alt-Shift+1 through Alt-Shift+0 will reset the first ten countup timers.
   
Thanks in advance.
Title: Re: DONE: Time each Timer
Post by: skwire on January 25, 2012, 10:10 AM
Hi Dezzper and welcome to the site.

Excellent. I was looking for a similar program. But...
Could you add the ability to control timers from the command line (so one can make a shortcut or start the timer from other programs)?

That's an interesting idea but more complex to implement than you might think due to the single-instance-ness that would have to be maintained.  I'll add it to my list and see what I can do.

Also, there is a slight inaccuracy in Help (help.txt):

Doh.   :-[  Will fix and thanks for reporting it.

BTW, I've further developed this application on this thread here:

https://www.donationcoder.com/forum/index.php?topic=24540.0

I'm going to lock this thread so please direct any further posts to the one above.  Thanks.