Welcome, Guest. Please Login or Register.
eccoMAGIC Forums
07/21/24 at 20:01:55
Home Help Search Login Register


Pages: 1
Send Topic Print
  Rating
Rate:
Rating:
Rating: 8.00
Votes: 1

5
4
3
2
1








1



5
4
3
2
1


1


2


3


4


5


6


7


8


9


10

Time Recorder (Popularity: 5566 )
cowdad
Contributing  Member
***


I Love Ecco!

Posts: 23
Show the link to this post Time Recorder
12/09/07 at 23:28:23
 
Time Recording +Summary +Interruptions. Now with accuracy to second. Set selected item as current by a single hotkey hit.  
 
 
Key folders
     Current (checkmark)
           no rules
     seconds (number)
           ++::0:
     SpentT (number)
           ++::0:
     SumT (number)
           ++:C!-:sumc(fv("SpentT"))+sumc(fv("SumT")):
     oldt (checkmark) - use it to find the just closed item, to correct SpentT manually if needed.
           no rules
 
 
Key LUAscript, used for offset time spent on a task:
 
function time()            
         
-- get time (mines a "zero level point" to fit into "number" folder type)          
local tnow = os.time()-1200000000          
         
-- new item (selected)          
itemnew = get_select_items()            
         
-- clear oldt
x = get_folder_items("oldt")  
max=table.maxn(x)  
for i=1,max do  
set_folder_value("oldt",x[i],0)  
end  
 
-- old item - calculate spent, unflag current, flag oldt
x = get_folder_items("Current")  
max=table.maxn(x)  
for i=1,max do  
spentjust = tnow - get_folder_value("seconds",x[i])  
msgbox(get_item_text(x[i]), "+" .. math.floor(spentjust/0.6)/100 .. " mins")
spentnew =  spentjust / 60 + get_folder_value("SpentT",x[i])
set_folder_value("SpentT",x[i],spentnew)  
set_folder_value("Current",x[i],0)  
set_folder_value("oldt",x[i],1)  
end
         
-- new item - flag current, unflag temp, renew seconds          
set_folder_value("Current",itemnew[1],1)            
set_folder_value("seconds",itemnew[1],tnow)          
         
end
 
Back to top
« Last Edit: 12/11/07 at 12:19:18 by cowdad »  
  IP Logged
cowdad
Contributing  Member
***


I Love Ecco!

Posts: 23
Show the link to this post Re: Time Recorder
Reply #1 - 12/20/07 at 01:20:44
 
In the time_recorder_2.6 i've added taskbar counter indicator.
Back to top
 
  IP Logged
Admin
Administrator
*****


I love Ecco!

Posts: 134
Show the link to this post Re: Time Recorder
Reply #2 - 12/20/07 at 17:32:09
 

Impressive!
Back to top
 
 

The Administrator.
WWW   IP Logged
Pages: 1
Send Topic Print