Mouse Scroll Button Click = Return (new line) ?

Yuri Curi
2013-02-24
2013-02-26
  • Yuri Curi
    Yuri Curi
    2013-02-24

    Hello,
    I was wondering if it is possible to have a mouse button function, that when I click the scroll button on my mouse, it creates a return, or a new line...
    ex. 3 lines of code, i want to be at the end of line 2, and click the scroll wheel button, now line 3 becomes line 4, and line 3 is empty so i can start typing at the beginning of it.
    Does anyone know if such a function exists or a plugin?

     
  • Easy to do as an AutoHotkey script:
    #IfWinActive ahk_class Notepad++
    MButton:: send {LButton}{Enter}

    I added a left click (LButton) before the enter, so the new line will be inserted at mouse position.

     
  • Yuri Curi
    Yuri Curi
    2013-02-26

    Thank you VERY MUCH!!!!!
    It works perfectly!!! And I appreciate you going the extra step with the LButton!