You can change the keyboard hotkey in the (1st line of the) script if you need. Press Ctrl + Alt + D to insert the timestamp at the current cursor position.Now, switch to the program where you want to insert the date or timestamp. ![]() It will show up in the notification area. Save the file insert_date.ahk and close the editor.Remove all lines in the script and replace it with the following code: ^!d::įormatTime, CurrentDateTime, hh:mm tt M/dd/yyyy.Right-click the file and choose Edit Script.Rename the script file New AutoHotkey Script.ahk to insert_date.ahk.Right-click on the desktop, click New and select AutoHotkey Script. ![]() Insert date or time in any program using keyboard hotkeyĪutoHotkey is a free, open-source scripting language for Windows that allows users to easily create small to complex scripts for all kinds of tasks such as form fillers, auto-clicking, macros, etc. With automation tools, you also have the advantage of using a single hotkey combination to insert the date or timestamp in any program. Similarly, WordPad has the Date and time toolbar button that lets you insert the date or timestamp in your preferred format from the list of 13 choices.īut, if you’re using a program which doesn’t have a built-in feature to insert current date and time, you may need a third-party macro or automation tool for that purpose. ![]() Microsoft Office Word, OneNote allows the Alt + Shift + D and Alt + Shift + T hotkey combinations to insert the current date and current time respectively.
0 Comments
Leave a Reply. |