Timer

Simple timer, click first time to activate the timer (a DialogBox will appear) and then press everytime you want to insert the timer. Useful for taking notes while recording the lecture.

Download

Author(s) : mc
Category : Timer
Last Updated : March 01, 2018
Requirements : OneNote 2010 or above
Screenshot :

Timer

Timer is on
Changelog :

March 01, 2018 (D387A5) - mc
Initial Version

Comments

Name
Comment
Ashkan Jabbari - 2025-08-13
Hello
If you want the value to be reset after entering the duration, this program is for you.
Select the Timer macro in Edit Macros, replace this code with the previous one, and take a sip of your tea.

function Main($arg)
$curr = GetCurrentPage()
if (!LocalStore_Read("Init" + $curr.id, $InitTime))
$InitTime = DateTime_Now()
LocalStore_Write("Init" + $curr.id, $InitTime)
DialogBox_Show(DialogBox_Create("Timer is on"))
else
$texts = QueryObjects("Text", GetCurrentPage())
$found = false
$currH = DateTime_Hour(DateTime_Now())
$currM = DateTime_Min(DateTime_Now())
$currS = DateTime_Sec(DateTime_Now())
$initH = DateTime_Hour($InitTime)
$initM = DateTime_Min($InitTime)
$initS = DateTime_Sec($InitTime)
if ($currS < $initS)
$currM -= 1
$currS += 60
if ($currM < $initM)
$currH -= 1
$currM += 60
foreach ($text in $texts)
if ($text.selected)
if (!$found)
$found = true
$text.value += ($currH - $initH) + ":" + ($currM - $initM) + ":" + ($currS - $initS)
else
$text.value = ""
$text.selected = false
LocalStore_Delete("Init" + $curr.id)
$Time = ($currH - $initH) + ":" + ($currM - $initM) + ":" + ($currS - $initS)
DialogBox_Show(DialogBox_Create("Timer is off, Duration: " + $Time))

Scott - 2023-02-03
yep, doesn't work. What a shame. Big need for this for many poeple
c - 2022-08-02
It is definitely a useful tool, but somehow it doesn't work.

I an only activate it once, and for, now, every time i click on it, it gives me something like -14:12:31 or -14:12:35.

It seems that i can not reactivate it.

please fix it thx.