DonationCoder.com Forum
DonationCoder.com Software => Coding Snacks => Finished Programs => Topic started 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.
-
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.
-
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:
- ctrl-1 through ctrl-0 will start/pause the corresponding timer.
- ctrl-alt-1 through ctrl-alt-0 will reset the timer to 0. You can also do this while the timer is running.
- The ">" button will start a timer.
- The "| |" will pause a timer.
- The "<<" will reset a timer.
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.
-
Thanks, this is good. 8) I notice a delay of about a second when pressing the hotkey to resume though.
-
I notice a delay of about a second when pressing the hotkey to resume though.-Smobu
Call it a result of my code design for this application. If you find it too bothersome, I can refactor the code.
-
It would be great if you could do so.
-
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 ]
-
This version does the job well.
-
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.
-
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)?-Dezzper
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):-Dezzper
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.