Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 "[email protected]"

Is this possible?

Mestika

share|improve this question
add comment

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 4 down vote accepted

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

::my@::[email protected]

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 [email protected], anywhere and everywhere you type it.

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

share|improve this answer
add comment

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

^m::Send, [email protected]
share|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
add comment

ClipCache may suite your needs

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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