41
Finished Programs / Re: DONE - IDEA: Time Stamp to Clipboard
« on: March 31, 2006, 07:44 AM »
Sounds like this has been solved for most people, but here's how I went at this.
Half the time I need a date or time stamp, I'm typing and don't want to go to the mouse - nor do I need it to go to the clipboard.
So... Just use a keyboard shortcut and/or replacement codes and you can setup however you like the dates.
The string replacement works than a control combination when you're renaming a file.
I used the that are pretty uncommon words to type otherwise:
":date" ->31Mar2006 08:35 (date & time stamp)
";date" -> 31Mar2006
"ddate" -> 03-31-06 (dash date)
"udate" -> 03_31_06 (underline date)
"sdate" -> 03/31/06 (slash date)
Sending a copy of the same information to the clipboard would be a simple addition.
Best,
Rob
Half the time I need a date or time stamp, I'm typing and don't want to go to the mouse - nor do I need it to go to the clipboard.
So... Just use a keyboard shortcut and/or replacement codes and you can setup however you like the dates.
The string replacement works than a control combination when you're renaming a file.
I used the that are pretty uncommon words to type otherwise:
":date" ->31Mar2006 08:35 (date & time stamp)
";date" -> 31Mar2006
"ddate" -> 03-31-06 (dash date)
"udate" -> 03_31_06 (underline date)
"sdate" -> 03/31/06 (slash date)
; ----- Enter current date & time when :date is typed --------
:::date::
SetKeyDelay,0
Send %A_DD%%A_MMM%%A_Year% %A_Hour%:%A_Min%
return
; ----- Enter current date when ;date is typed --------
::;date::
SetKeyDelay,0
Send %A_DD%%A_MMM%%A_Year%
return
; s+date = slash date MM/DD/YY
::sdate::
StringRight, year, A_YYYY, 2
Send %A_Mon%/%A_Mday%/%year%
return
; ----- Std format dates (for filenaming) --------
; d date = dash date MM-DD-YY
::ddate::
StringRight, year, A_YYYY, 2
Send %A_Mon%-%A_Mday%-%year%
return
; u+date = underline date MM_DD_YY
::udate::
StringRight, year, A_YYYY, 2
Send %A_Mon%_%A_Mday%_%year%
return
:::date::
SetKeyDelay,0
Send %A_DD%%A_MMM%%A_Year% %A_Hour%:%A_Min%
return
; ----- Enter current date when ;date is typed --------
::;date::
SetKeyDelay,0
Send %A_DD%%A_MMM%%A_Year%
return
; s+date = slash date MM/DD/YY
::sdate::
StringRight, year, A_YYYY, 2
Send %A_Mon%/%A_Mday%/%year%
return
; ----- Std format dates (for filenaming) --------
; d date = dash date MM-DD-YY
::ddate::
StringRight, year, A_YYYY, 2
Send %A_Mon%-%A_Mday%-%year%
return
; u+date = underline date MM_DD_YY
::udate::
StringRight, year, A_YYYY, 2
Send %A_Mon%_%A_Mday%_%year%
return
Sending a copy of the same information to the clipboard would be a simple addition.
Best,
Rob