DonationCoder.com Software > Finished Programs
SOLVED: Insert Anywhere Date and Time utility
nudone:
i've got an autohotkey script that inserts time or date anywhere i type either...
qtime or qdate
i assume you could create any number of different date formats associated with a key word. you could even just have something like qt or qd if you wanted to keep it simple.
#IfWinActive
::qdate::
FormatTime, TimeString,,yyyy-MM-dd
Send %TimeString%
Return
#IfWinActive
::qtime::
FormatTime, TimeString,,yyyy-MM-dd HH.mm
Send %TimeString%
Return
tomos:
Here's another that jgpaiva made based on a request of mine:
yyyy-MM-dd etc
and a hotkey:-
Alt+D
I havent used it in a while, not sure why :-\ but far as I know it works well
Following your indications, Tomos..
Here's PasteDate.ahk:
--- ---; Author: jgpaiva
;
; Script Function:
; Send the current date to the active window
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
!D::
FormatTime,CurrentTime,%A_Now%,yyyy-MM-dd HH:mm:ss
tempClipboard := clipboard
clipboard := CurrentTime
Send,^v
clipboard := tempClipboard
return
It's really simple to change the format, just change the stuff after the last comma on this line:
--- ---FormatTime,CurrentTime,%A_Now%,yyyy-MM-dd HH:mm:ss
-jgpaiva (February 14, 2008, 01:36 PM)
--- End quote ---
and there's yet another one from Kartal at the bottom of the linked page
CodeTRUCKER:
i've got an autohotkey script that inserts time or date anywhere i type either...
qtime or qdate
i assume you could create any number of different date formats associated with a key word. you could even just have something like qt or qd if you wanted to keep it simple.
#IfWinActive
::qdate::
FormatTime, TimeString,,yyyy-MM-dd
Send %TimeString%
Return
#IfWinActive
::qtime::
FormatTime, TimeString,,yyyy-MM-dd HH.mm
Send %TimeString%
Return
-nudone (January 14, 2011, 05:21 PM)
--- End quote ---
Can the results be formatted exactly like this? - Nov 15, 2010 02:43 PM
tomos:
This section could help
http://www.autohotkey.com/docs/Variables.htm#YYYY
lanux128:
Can the results be formatted exactly like this? - Nov 15, 2010 02:43 PM-CodeTRUCKER (January 14, 2011, 05:40 PM)
--- End quote ---
this snippet should do it. just append it to nudone's script and type 'qdt' to get the date/time format as you wanted.
--- Code: Autohotkey ---#IfWinActive::qdt:: FormatTime, TimeString,,MMM dd, yyyy HH:mm tt Send %TimeString%Return
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version