dddate.ahk
This script inserts the date into the current cursor position after a hotkey is pressed.
ddd
inserts the date like 2021-01-09DDD
inserts the date like 2021-Jan-09fff
inserts the date like 20210109T084323-0400FFF
inserts the date like 20210109 @ 084344-0400
#SingleInstance force
:R*?:DDD::
if GetKeyState("LShift", "P") {
FormatTime, CurrentDateTime, , yyy-MMM-dd
SendInput %CurrentDateTime%
}
else {
FormatTime, CurrentDateTime, , yyy-MM-dd
SendInput %CurrentDateTime%
}
return
:R*?:FFF::
if GetKeyState("LShift", "P") {
FormatTime, CurrentDate, , yyyyMMdd
FormatTime, CurrentTime, , HHmmss-0400
SendInput %CurrentDate% @ %CurrentTime%
}
else {
FormatTime, CurrentDateTime, , yyyyMMddTHHmmss-0400
SendInput %CurrentDateTime%
}
return