Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Autohotkey script for inserting the Excel compliant current date and time any time you type Dnow http://www.autohotkey.com/
import datetime
format_str = '%Y-%m-%d %H:%M:%S'
now = datetime.datetime.now()
output = now.strftime(format_str)
keyboard.send_keys(output)
## Installation
## sudo apt-get install autokey-gtk
##
## Configuration
## Copy/paste this in to a new script
## Script settings:
## [ ] Always prompt before executing this script
## [ ] Show in notification icon menu
## Abbreviations: Dnow
## Hotkey: (None configured)
## Window Filter: (None configured)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment