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.

I'm lazy and I'd like to simplify pasting links with spaces into a word document. I know it can be done by enclosing a link in chevrons:

<D:\my document.docx>

Is there a way to automate that process so you select the bit you want to link, press some keyboard shortcut and voila, it makes it a link with the chevrons to make sure any spaces are handled correctly?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

This can be done via AutoHotKey

You will press a key combination, it will copy and edit the value for you. When you paste, your desired string will exist.

EG, instead of pressing CTRL+C , you would press ALT+C to trigger this behaviour.

This is about the clipboard in AutoHotKey and should give you more than enough to get going http://www.autohotkey.com/docs/misc/Clipboard.htm

share|improve this answer
    
+1 / accepted. I can see a load of other uses for AutoHotKey - thanks! :-) –  Jon Cage Jun 11 at 12:24

In case anyone else finds this useful, the following script will paste these links when you hit alt+v:

!v::
SendInput <%clipboard%>{SPACE}
return
share|improve this answer

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.