Some advice for everyone which likes to play with AutoKey:
If you collect the marked string by clipboard.get_selection() like in
the example below which wraps bold tags around the marked text, make
sure to use time.sleep(0.1) right before and don't forget to "import
time". This issue did cost me another hour of my life! ;-)
***
import time
#collect string
time.sleep(0.1)
string = clipboard.get_selection()
#paste string and wrap bold around
keyboard.send_keys("<b>%s</b>" % string)
***
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mnemosyne-proj-users?hl=en.