I realize this is just about the most basic Autohotkey question one can ask, but I'm sitting here baffled as to why I can't get my simple hotstring to work.
I would like to get the following hotstring to post a time stamp whenever I press the letter t 3 times.
; Hotstring to place time stamp in document ::ttt:: Send, %A_H%:%A_Min% tt Return
My second-grade code above dismembers the hour from the minutes and does not include hour nor the AM or PM.
I also tried the following code, which works, but it adds the date (I only want the time):
; Hotstring to enter time stamp in document ::ttt:: FormatTime, Time SendInput, %Time% Return
I've spent hours today running endless Google searches and experimenting with 0 positive results on my end. I would really appreciate it if someone can correct my chicken-scratch code to yield my desired outcome. Again, I would like to simply type the letters ttt and have AutoHotkey change this hotstring (H:MM tt) to the time as in “6:15 PM”--I don’t need the date added.
Would really appreciate the help as the built-in help files only confused me further, and the other topics I found on the AutoHotkey website seemed to be explaining very intricate ways of entering dates and times.