AutoHotkey: Middle click opens new tab

From TotalcmdWiki
Revision as of 18:30, 7 May 2007 by SanskritFritz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Middle clicking on a folder opens the folder in a new tab. Middle clicking on a file opens the current folder in a new tab.

cm_OpenDirInNewTab := 3003
#IfWinActive ahk_class TTOTAL_CMD
$MButton::
   MouseGetPos, , , , sControl
   if (sControl != "TMyListBox1" and sControl != "TMyListBox2")
   {
      Send {MButton}
      Return
   }
   Click
   PostMessage 1075, %cm_OpenDirInNewTab%, 0
   Return