AutoHotkey: Show the active path in the title bar

From TotalcmdWiki
Revision as of 23:57, 31 May 2008 by White (talk | contribs) (Added category AutoHotkey scripts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Show the active path in the title bar of Total Commander.

#Persistent

SetTimer subTimer, 250

subTimer:
	if WinActive( "ahk_class TTOTAL_CMD" )
	{
		ControlGetText sPath, TMyPanel2
		StringMid sPath, sPath, 1, StrLen(sPath) -1
		WinGetTitle sWindowTitle
		if ( sWindowTitle != sPath )
			WinSetTitle %sPath%
	}
	Return

Back to AutoHotkey