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.

Is there any application to paste the same text every time with middle button?

I have seen tools to paste the clipboard text, But I am looking to paste the same text every time I click the middle button of my mouse.

share|improve this question
    
In most applications the middle mouse button is a reserved hotkey. In Office it activates mouse scroll and in browsers it opens a link in a new tab. Can you use a keyboard shortcut instead? –  CLockeWork Jul 12 '13 at 10:47
    
Also, can detail what you mean by post the same text? Do you want to have the user define this, or will it always be the same words, programmed in? –  CLockeWork Jul 12 '13 at 10:50
    
I need to paste the text in firefox, Keyboard shortcut taking a bit time and its faster to go with mouse. I want to have this as user defined and the same text needs to be pasted every time. –  Sriharsha Kalluru Jul 12 '13 at 10:55
    
So you want to create a new function, to allow middle-mouse to paste text from a bespoke location, rather than from the clipboard? Will this be a Firefox plugin or extension? It would help if you could explain why you want to do this. Sorry for all the questions, but you're more likely to get a good answer if your question provides all the info needed. –  CLockeWork Jul 12 '13 at 11:02
    
A predefined text? Hmm, thats sad. I just found AutoCopy (Firefox Extension) which pastes with middle-click the current selected text. I guess, that doesn't fit your needs 100%? –  nixda Jul 12 '13 at 11:14

2 Answers 2

up vote 0 down vote accepted

Something like this is easy to achieve with AutoHotkey:

SetTitleMatchMode 2
#IfWinActive Firefox
  MButton::
    SendInput Hello World!
    Return
#IfWinActive

Install AHK, save the above in a text file with .AHK extension, then run the script.

share|improve this answer
    
Thank You , This is what I am looking for. It is extremely wonderful. –  Sriharsha Kalluru Jul 14 '13 at 9:24

You could probably use Makro Toolworks, it lets you record or create key or mouse inputs and execute them with any mouse/keyboard button you like.

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.