AutoHotkey: Popup the splitter menu: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 19: Line 19:
  }
  }
  Return
  Return
Back to [[AutoHotkey]]

Revision as of 11:24, 3 June 2005

; Ctrl-G (Total Commander: splitter menu)
~^g::
	if not WinActive( "ahk_class TTOTAL_CMD" )
		Return

	WinGet sf_aControls, ControlList
	Loop Parse, sf_aControls, `n
	{
		StringLeft sf_sTemp, A_LoopField, 6
		if (sf_sTemp = "TPanel")
		{
			ControlGetPos Cx,Cy,Cw,Ch, %A_LoopField%
			if (Cw < 16)
			{
				ControlClick %A_LoopField%, A,,RIGHT
				Break
			}
		}
	}
	Return

Back to AutoHotkey