topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday October 5, 2024, 7:39 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: DONE: Time each Timer  (Read 15589 times)

Smobu

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
DONE: Time each Timer
« on: October 17, 2010, 01:20 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.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #1 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.autohotke....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 PM by MilesAhead »

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #2 on: October 24, 2010, 11:55 AM »
Here you go, Smobu:  Ten Timer download

2010-10-24_115034.pngDONE: Time each Timer

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.

Smobu

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #3 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.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #4 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.

Smobu

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #5 on: October 24, 2010, 12:23 PM »
It would be great if you could do so.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #6 on: October 27, 2010, 01:10 PM »
Sorry for the delay.  See if this version suits you better.  Ten Timer download

2010-10-27_120929.pngDONE: Time each Timer

Smobu

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 51
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #7 on: October 27, 2010, 05:01 PM »
This version does the job well.

Dezzper

  • Participant
  • Joined in 2012
  • *
  • default avatar
  • Posts: 1
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #8 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.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Time each Timer
« Reply #9 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.donation...ex.php?topic=24540.0

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