No I hadn't. But that is a standalone editor (right?).
Yeah. I thought I'd just mention it, in case it hits the spot.
No I hadn't. But that is a standalone editor (right?).
#IfWinActive, ahk_class Notepad2
Mbutton::
WinGetPos,,,w,h, A
MouseGetPos,x,y,,contr
if contr not in SysListView321,msctls_statusbar321
return
if ( h - y < 60 )
{
send !s ;mbutton near lower edge: toggle statusbar
send oo{enter}
}
else if ( x < w / 2 )
send ^+n ;mbutton left half: toggle line numbering
else if (w - x < w / 2 )
send ^w ;mbutton right half: toggle line wrap
return
#IfWinActiveOriginal address: https://www.donationcoder.com/forum/index.php?topic=35241.0