Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • August 29, 2016, 08:28:38 PM
  • Proudly celebrating 10 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: KeyStroke Activated Timer  (Read 3825 times)

EvilTony

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
KeyStroke Activated Timer
« on: September 12, 2007, 08:40:48 PM »
Hello,

I am looking for a small app, that is a timer.  I don't need it to do much..  Just activate a timer when I hit a key combination. Then when I hit another combination, it will stop the timer it will add the total to a running count.  I need to have two separate counts going that I could monitor throughout the day.  Maybe if it wasn't too much trouble, that i could set a overall time and it could display each timer's % of the total time used.

I've tried several freeware timers available, they just don't seem to work well and hog too much screen.  If anyone could help me with this I would be very grateful. Thanks.

Tony

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: KeyStroke Activated Timer
« Reply #1 on: September 13, 2007, 07:58:59 PM »
try searching in the forums, there have been similar requests before..

http://www.donationc...search2;search=timer


jupit402

  • Participant
  • Joined in 2008
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
Re: KeyStroke Activated Timer
« Reply #2 on: January 31, 2008, 06:16:59 PM »
 :-\ it is the same with keyloggers software?

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: KeyStroke Activated Timer
« Reply #3 on: February 08, 2008, 05:44:11 PM »
 :) Here's something to get you started!

TwelveTimers shows a small status window in the bottom left of your screen, just press F1 through F12 to start and stop timers.

To use it, download and install AutoHotkey from http://www.autohotkey.com. Copy the script into Notepad, save it as TwelveTimers.ahk, and doubleclick the saved file.

Skrommel


;TwelveTimers.ahk
; Press F1-F12 to start and stop timers.
;Skrommel @ 2008

#NoEnv
#SingleInstance,Force
SetBatchLines,-1
CoordMode,ToolTip,Screen

total:=0
Loop,12
{
  timer%A_Index%:=0
  total%A_Index%:=0
  Hotkey,F%A_Index%,HOTKEY
}
SetTimer,RUNNING,100
Return


HOTKEY:
StringTrimLeft,hotkey,A_ThisHotkey,1
If (running%hotkey%<>"")
{
  total%hotkey%:=total%hotkey%+(A_TickCount-start%hotkey%)/1000
  running%hotkey%:=""
  Return
}
start%hotkey%:=A_TickCount
running%hotkey%:="+ "
Return


RUNNING:
total:=0
status:="KEY`t`%`tTIME`n"
Loop,12
{
  If (running%A_Index%<>"")
    timer%A_Index%:=total%A_Index%+(A_TickCount-start%A_Index%)/1000
  total:=total+timer%A_Index%
}
Loop,12
  status:=status . running%A_Index% "F" A_Index "`t" Round(timer%A_Index%/total*100,0) "%`t" Round(timer%A_Index%,1) "s`n"
ToolTip,% status "TOTAL`t100%`t" Round(total,1) "s",0,% A_ScreenHeight
Return
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,147
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: KeyStroke Activated Timer
« Reply #4 on: February 09, 2008, 01:18:14 PM »
The return of skrommel!!!  :Thmbsup: :Thmbsup: :Thmbsup: :Thmbsup: :Thmbsup: