Skip to content

Instantly share code, notes, and snippets.

@winhamwr
Created October 14, 2013 17:04
Show Gist options
  • Save winhamwr/6978753 to your computer and use it in GitHub Desktop.
Save winhamwr/6978753 to your computer and use it in GitHub Desktop.
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