main: textpath = C:\Users\Jeremy\Dropbox\txt\ return Capslock:: ;append to text file { FormatTime, dateStamp, , yyyy-MM-dd filename=%textpath%%datestamp%.txt InputBox, text, Log for %datestamp%,,,,120 if ErrorLevel ;if canceled do nothing return FormatTime, myTime, , yyyy/MM/dd hh:mm:ss text = %myTime%: %text% ifexist %filename% text=`n%text% FileAppend, %text%, %filename% } return ^Capslock:: ;open today's text file { FormatTime, dateStamp, , yyyy-MM-dd filename=%textpath%%datestamp%.txt Run, %filename% } return +Capslock::Capslock ;shift + capslock == original capslock function !Capslock:: ;append to text file { InputBox, filename, Append To Text File, (.txt will be automatically added),,,120,,,,,todo if ErrorLevel return if %filename% { InputBox, text, Text To Append,,,,120 if ErrorLevel return filename=%textpath%%filename%.txt ifexist %filename% text=`n%text% FileAppend, %text%, %filename% } } return #Capslock:: ;open text file { GUI, add, combobox, vfilenamebox gfilenamebox GUI, Add, button, default, OK Loop, %textpath%*.txt { GuiControl,,filenamebox,%A_LoopFileName% } GUI, show filenamebox: if A_GuiEvent <> DoubleClick return ButtonOK: { GuiControlGet, filenamebox ; Retrieve the ListBox's current selection. filename=%textpath%%filenamebox% Run, %filename% Gui Destroy return } GuiClose: GuiEscape: Gui Destroy return if ErrorLevel return if %filename% { filename=%textpath%%filename%.txt Run, %filename% } } return ^!Capslock:: { Run, %textpath% }