EDIT: there are 3 timestamp lines. Modified the explanation accordingly.
I thought I’d post a few Autohotkey scripts on this thread to see if there’s any interest in perhaps posting more of them. LMK if you think this is useful or if there are specific things you want to see.
This first one is very simple and straightforward. It’s based on Brett Terpstra’s “What Was I Doing?” workflow. It:
- responds to a keybinding
- opens a small text box
- Lets you type a status update
- Appends that update to a text file with today’s date
- Note that the text file “lived” in the same folder I pointed ResophNotes at. In Mac speak that’s “… same folder I pointed NVAlt at”.
A few more notes:
- I called this script using the keybinding
ctrl-alt-windows-space
. The keybinding appears in a separate thread of Autohotkey, and this script file was called once the keybinding was invoked. - Line 5 … generates the input box with window title “Task Capture”. The two numbers give the size of the box (width and height).
- Lines 6 - 8 … generates the timestamp values.
- Line 9 … the heart of the script. FileAppend does exactly what its title says: it takes the text in the second argument
%wdidt_date% %wdidt_time% %text% 'n
and appends it to the file in the last argument. If the file exists, it uses that file. If the file does not exist, it creates a new one. So every month a new file is added.
Line 11 … gives a little bubble at the system tray to let me know the operation executed properly
; WDIDT Entry Box
#SingleInstance force
inputbox, text, Task Capture,,,350,100
FormatTime, wdidt_ynm,, yyyy-MM-dd
FormatTime, wdidt_date,, yyyy-MM-dd
FormatTime, wdidt_time,, HH:mm
fileappend, %wdidt_date% %wdidt_time% %text% `n, C:\{PATH TO RESOPHNOTES FOLDER} %wdidt_ynm% WDIDT.txt
traytip,,Task Added,4,1
ExitApp