Welcome Guest.   Make a donation to an author on the site September 20, 2014, 05:01:10 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2012! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: Time each Timer  (Read 5080 times)
Smobu
Participant
*
Posts: 51

View Profile Give some DonationCredits to this forum member
« on: October 17, 2010, 01:20:55 PM »

I'm looking a stop watch program that can keep track of multiple times.
I tried MultiTimer 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.
Logged
MilesAhead
Member
**
Posts: 4,841



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: October 17, 2010, 06:10:53 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.

« Last Edit: October 17, 2010, 06:12:49 PM by MilesAhead » Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
skwire
Moderator
*****
Posts: 4,077



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: October 24, 2010, 11:55:52 AM »

Here you go, Smobu:  Ten Timer download



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.
Logged

Smobu
Participant
*
Posts: 51

View Profile Give some DonationCredits to this forum member
« Reply #3 on: October 24, 2010, 12:15:45 PM »

Thanks, this is good. Cool I notice a delay of about a second when pressing the hotkey to resume though.
Logged
skwire
Moderator
*****
Posts: 4,077



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: October 24, 2010, 12:19:05 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.
Logged

Smobu
Participant
*
Posts: 51

View Profile Give some DonationCredits to this forum member
« Reply #5 on: October 24, 2010, 12:23:25 PM »

It would be great if you could do so.
Logged
skwire
Moderator
*****
Posts: 4,077



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: October 27, 2010, 01:10:19 PM »

Sorry for the delay.  See if this version suits you better.  Ten Timer download

Logged

Smobu
Participant
*
Posts: 51

View Profile Give some DonationCredits to this forum member
« Reply #7 on: October 27, 2010, 05:01:51 PM »

This version does the job well.
Logged
Dezzper
Participant
*
Posts: 1

View Profile Give some DonationCredits to this forum member
« Reply #8 on: January 24, 2012, 12:10:20 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:
Quote
    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.
Logged
skwire
Moderator
*****
Posts: 4,077



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: January 25, 2012, 10:10:28 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.   embarassed  Will fix and thanks for reporting it.

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

http://www.donationcoder....m/index.php?topic=24540.0

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

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.037s | Server load: 0.08 ]