AutoHotkey: Show the active path in the title bar

From TotalcmdWiki
Jump to: navigation, 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