Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Autohotkey script to compose a gmail message with a timestamp in place.
- ; Thanks to Christysandhoff in this comment on my blog:
- ; http://robertmarkbramprogrammer.blogspot.com.au/2011/02/insert-date-into-any-program-using.html#comment-542578019
- ; Macros here are only active if we are in Chrome
- ; Warning: the value "Chrome_WidgetWin_1" might change (it used to be Chrome_WidgetWin_0).
- #IfWinActive, ahk_class Chrome_WidgetWin_1
- #.:: ;; Windows key + dot:
- ; Check if we are in the gmail tab.
- WinGetTitle, Window_Title, A ; A is for the active window
- IfInString, Window_Title, Gmail - Google Chrome
- {
- ; Compose (c), tab to message window, put timestamp + space then cursor up
- FormatTime, timestamp,, dddd d MMMM yyyy, hh:mm:ss tt
- SendInput, c{tab}{tab}%timestamp%{enter}{enter}{enter}{up}
- return
- }
- Return
- #IfWinActive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement