topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday December 11, 2024, 9:38 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: KeyStroke Activated Timer  (Read 7451 times)

EvilTony

  • Participant
  • Joined in 2007
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
KeyStroke Activated Timer
« on: September 12, 2007, 08:40 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,277
    • View Profile
    • Donate to Member
Re: KeyStroke Activated Timer
« Reply #1 on: September 13, 2007, 07:58 PM »
try searching in the forums, there have been similar requests before..

https://www.donation...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 PM »
 :-\ it is the same with keyloggers software?

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: KeyStroke Activated Timer
« Reply #3 on: February 08, 2008, 05:44 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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • 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 PM »
The return of skrommel!!!  :Thmbsup: :Thmbsup: :Thmbsup: :Thmbsup: :Thmbsup: