Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

TINYSTUDYTOOL: Spaced repetition trackback


  • Please log in to reply
No replies to this topic
Nexutix
  • Members
  • 3 posts
  • Last active: Dec 30 2013 04:15 AM
  • Joined: 15 Feb 2011
Note: I am not programmer/engineer by my profession and this script may look really noobish.

What it does:

On pressing Ctrl+Win+K:

1. Takes date input.
2. Calculates dates 1, 3, 7, 30 days back. (You can edit to change for your needs)
3. Gives calculated date output.

For whom is it useful?
If you are keeping a diary of what you have studied everyday, you can track back the dates from which you should revise according to general theory of Spaced repitition to memorize things.

Advantages:
You can lookup in any calendar you want: online, offline, in a diary, whichever.

Disadvantages:
Why do you want to know disadvantages of program that has just single humble function?

P.S.: By default, current date is entered in inputbox.


processdate(inputdate)
{

Stringtrimright, inputdatexy, inputdate, 4
Stringtrimleft, inputdatexd, inputdate, 6
Stringtrimleft, inputdatexmd, inputdate, 4
Stringtrimright, inputdatexm, inputdatexmd, 2

if (inputdatexm = 01)
{
inputdatexmr = January
}
else if (inputdatexm = 02)
{
inputdatexmr = February
}
else if (inputdatexm = 03)
{
inputdatexmr = March
}
else if (inputdatexm = 04)
{
inputdatexmr = April
}
else if (inputdatexm = 05)
{
inputdatexmr = May
}
else if (inputdatexm = 06)
{
inputdatexmr = June
}
else if (inputdatexm = 07)
{
inputdatexmr = July
}
else if (inputdatexm = 08)
{
inputdatexmr = August
}
else if (inputdatexm = 09)
{
inputdatexmr = September
}
else if (inputdatexm = 10)
{
inputdatexmr = October
}
else if (inputdatexm = 11)
{
inputdatexmr = November
}
else if (inputdatexm = 12)
{
inputdatexmr = December
}
else
{
inputdatexmr = ?
}

outputdateformat = %inputdatexd% %inputdatexmr% %inputdatexy%

return outputdateformat

}


^#k::
StringTrimRight, A_Now_trimmed, A_Now, 6
Inputbox, tbdate, Spaced Repetition Trackback, Date in format: YYYYMMDD,,,,,,,,%A_Now_trimmed%

onedatexymd = %tbdate%
threedatexymd = %tbdate%
weekdatexymd = %tbdate%
monthdatexymd = %tbdate%

onedatexymd += -1, days
threedatexymd += -3, days
weekdatexymd += -7, days
monthdatexymd += -30, days

StringTrimRight, onedatexymdt, onedatexymd, 6
onedatexr := processdate(onedatexymdt)

StringTrimRight, threedatexymdt, threedatexymd, 6
threedatexr := processdate(threedatexymdt)

StringTrimRight, weekdatexymdt, weekdatexymd, 6
weekdatexr := processdate(weekdatexymdt)

StringTrimRight, monthdatexymdt, monthdatexymd, 6
monthdatexr := processdate(monthdatexymdt)

msgbox Do revision of topics from following dates: `r`n%onedatexr%`r`n%threedatexr%`r`n%weekdatexr%`r`n%monthdatexr%
return