AutoHotkey: Middle click opens new tab: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
 
(Added category AutoHotkey scripts)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Middle clicking on a folder opens the folder in a new tab.
Middle clicking on a folder opens the folder in a new tab.<BR>
Middle clicking on a file opens the current folder in a new tab.
Middle clicking on a file opens the current folder in a new tab.
  cm_OpenDirInNewTab := 3003
  cm_OpenDirInNewTab := 3003
Line 13: Line 13:
     PostMessage 1075, %cm_OpenDirInNewTab%, 0
     PostMessage 1075, %cm_OpenDirInNewTab%, 0
     Return
     Return
<BR>Back to [[AutoHotkey]]<BR>
[[Category:AutoHotkey scripts|Middle click opens new tab]]

Latest revision as of 18:56, 1 June 2008

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


Back to AutoHotkey