smileyninja / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

phrase with script inside (text text [date] text #235

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I cannot find a way to insert a script in a phrase.
Like to make a line of text like "this comment is made by me on {date} using 
bla bla"
maybe the possibility exists already, if not please put it on your todo list
great stuff this autotext
Jaap

Original issue reported on code.google.com by jaap.bos...@gmail.com on 16 Feb 2013 at 1:20

GoogleCodeExporter commented 8 years ago
You can use a script for this, there is no need for it to be a phrase. Here is 
an example:

import time

keyboard.send_keys("this comment is made by me on %s using bla bla" 
%(time.strftime("%Y-%m-%d", time.localtime())))

Original comment by Titan8...@gmail.com on 1 Mar 2013 at 4:58