Ergonomically, I much prefer using the keyboard to automate things, rather than using the mouse, so I wrote this into my AHK file: (please feel free to use/adapt it)
________________________________
^+G:: ; Ctrl+Shift+G - grabs folder/file path to clipboard and puts Modification (or Creation?) date/time into Clipboard
FileDateTime := "" ; define and clear variable
FileNamePath := "" ; define and clear variable
FileNameNoExt := "" ; define and clear variable
SuffixString := "hrs" ; define suffix
; ---------------------------------------
SetTitleMatchMode, 2 ; match must be for specified string anywhere in the window Title name
IfWinActive, xplorer² ; do this if xplorer² is the string in the active window Title
{
clipboard := "" ; clear clipboard
SendInput, ^c ; copies file path and name to clipboard
ClipWait, 2 ; wait for up to 2 seconds for state change before proceeding, so as to ensure capture to clipboard
; MsgBox, 0, Pause 1 - Clipboard content, %Clipboard% ; display clipboard text contents (for testing)
}
else ; return (do nothing)
{
return
}
FileNamePath = %Clipboard% ; puts just plain text of file name and path from clipboard into variable
; MsgBox, 0, Pause 2 - FileNamePath, %FileNamePath% ; display variable text contents (for testing)
FileGetTime, FileDateTime, %FileNamePath%, M ; get file CREATION (C) or MODIFICATION (M) date/time for named path/file
FormatTime, FileDateTime, %FileDateTime%, yyyy-MM-dd HHmm ; It will look like 2010-12-21 0353
; MsgBox, 0, Pause 3 - formatted FileDateTime, %FileDateTime% ; display variable text contents (for testing)
SplitPath, FileNamePath,,,,FileNameNoExt
clipboard = %FileDateTime%%SuffixString% %FileNameNoExt% ; put the formatted date/time+ suffix + filename into clipboard.
send {F2}^v{Enter}
return
;-------------------------------------------------------------------