one of my friends asked me yesterday if there was some way for him to create a shortcut key and attached it to his E-mail addressee (thus a string or text).

Example: In a document, mail, webpage, etc. press CTRL + M (or another combination) it writes "mymail@mydomain.com"

Is this possible?

Mestika

link|improve this question

feedback

migrated from stackoverflow.com Mar 3 '10 at 14:26

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 3 down vote accepted

I also highly recommend AutoHotKey, as @Snark suggests, but I'd suggest you use a hotstring like this:

::my@::mymail@mydomain.com

If that line is in your .ahk script, every time you type my@ followed by a space or a tab, it will auto-expand it into mymail@mydomain.com, anywhere and everywhere you type it.

No need to worry about collisions with Ctrl-M in other applications.

link|improve this answer
feedback

Easy to do with AutoHotkey. This command will map CTRL m to type the email address:

^m::Send, mymail@mydomain.com
link|improve this answer
1  
AHK is the way to go. Considering how likely Ctrl+M is to be used you might want to limit AHK to the particular programs where this shortcut is desired. – mindless.panda Mar 3 '10 at 15:32
feedback

ClipCache may suite your needs

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.