Fenstertitel soll aktives Verzeichnis sein

German support forum

Moderators: Hacker, Stefan2, white

Post Reply
Fannon
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-12, 07:57 UTC

Fenstertitel soll aktives Verzeichnis sein

Post by *Fannon »

Hallo!

bin neu hier. Und von TC wirklich begeistert.
Gerade stört mich allerdings hauptsächlich das hier: Wenn ich mehrere Fenster von TC offen habe ist es schwer bis unmöglich das richtige in der Taskleiste auszuwählen, da der Fenstertitel immer "Total Commander x64..." ist. Wenn dort stattdessen erstmal der aktuelle Pfad stehen würde und danach erst der Rest wäre es erheblich einfacher mit den Fenstern zu navigieren.

Hab ich da eine Option übersehen? Oder wäre das ein Feature Request? ;)

Liebe Grüße,
Simon
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6990
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Da gibt es z.B. ein Autohotkey Skript.
Siehe http://ghisler.ch/board/viewtopic.php?t=13307&highlight=
Fannon
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-12, 07:57 UTC

Post by *Fannon »

Danke für den Tipp! Autohotkey verwende ich sowieso.
Leider funktioniert das Script nicht. Kann das daran liegen, dass ich die x64 Version verwende?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6990
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Ich habe auch x64.
Das Skript aus dem Link sieht bei mir wie folgt aus (habe es mit Autohotkey_L kompiliert):


;*** Konfiguration Start
v_Separator32 := " < | x32 | > "
v_Separator64 := " < | x64 | > "
v_Timer := 250
;*** Konfiguration Ende

#Persistent
SetTimer, Timer, %v_Timer%

Timer:
hWnd := WinActive("ahk_class TTOTAL_CMD")
If (hWnd)
{
WinGet, v_TCExe, ProcessName, ahk_id %hWnd%
If (v_TCExe = "totalcmd.exe")
{
v_ActivePathControl := "TMyPanel3"
v_LeftPathControl := "TPathPanel1"
v_RightPathControl := "TPathPanel2"
v_Separator := v_Separator32
}
Else
{
v_ActivePathControl := "Window5"
v_LeftPathControl := "Window9"
v_RightPathControl := "Window14"
v_Separator := v_Separator64
}
ControlGetText, v_ActivePath, %v_ActivePathControl%
v_ActivePath := RegExReplace(v_ActivePath, "(.+)>", "$1\")
ControlGetText v_LeftPath, %v_LeftPathControl%
v_LeftPath := RegExReplace(v_LeftPath, "(.+\\).*", "$1")
ControlGetText v_RightPath, %v_RightPathControl%
v_RightPath := RegExReplace(v_RightPath, "(.+\\).*", "$1")
If (v_ActivePath = v_ActivePathOld && v_LeftPath = v_LeftPathOld && v_RightPath = v_RightPathOld)
Return
v_InactivePath := (v_ActivePath = v_LeftPath) ? v_RightPath : v_LeftPath
v_WinTitle := v_ActivePath . v_Separator . v_InactivePath
WinSetTitle, %v_WinTitle%
v_ActivePathOld := v_ActivePath
v_LeftPathOld := v_LeftPath
v_RightPathOld := v_RightPath
}
Return
Fannon
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-12, 07:57 UTC

Post by *Fannon »

hm, funktioniert auch nicht. Kann das von der Autohotkey Version abhängen?
Kompiliert habe ich nichts, da ich meine ahk Datei öfters ändere.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6990
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Das ganze ist für den TC 8 b12 !
Fannon
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-12, 07:57 UTC

Post by *Fannon »

Ja, den hab ich auch ;)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6990
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Hmm, dann fällt mir erst mal nichts mehr dazu ein.
Das Skript läuft ja auch bei anderen.
Benutzt du Autohotkey oder die aktuelle _L Version ?
Fannon
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-12, 07:57 UTC

Post by *Fannon »

Autohotkey_L

Wie sollte der Fenstertitel dann aussehen?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6990
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

In meinem Fall z.B.:

[os] 844.081.424 k of 960.959.484 k free < | x64 | > c:\Tools\AutoHotkey\
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1050
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Exe umbenannt?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Horst.Epp wrote:In meinem Fall z.B.:

[os] 844.081.424 k of 960.959.484 k free < | x64 | > c:\Tools\AutoHotkey\
Nein, SO soll es eigentlich nicht aussehen. Eigentlich stellt das Skript links vom Separator den aktiven und rechts davon den inaktiven Pfad dar.
Fannon wrote:Danke für den Tipp! Autohotkey verwende ich sowieso.
Leider funktioniert das Script nicht. Kann das daran liegen, dass ich die x64 Version verwende?
Nein, es liegt daran, daß sich die Instanznummern der durch AHK numerierten TC-Controls ändern können, wenn Du GUI-Elemente ein- oder ausblendest.

Lies diesen und den folgenden Beitrag:
http://ghisler.ch/board/viewtopic.php?p=236588#236588

Anschließend liest Du mit dem Window Spy die für Deine GUI-Konfiguration korrekten Instanznummern der relevanten Controls aus und paßt folgende Zeilen im Skript an,

für x64 diese:

Code: Select all

v_ActivePathControl := "Window5" 
v_LeftPathControl := "Window9" 
v_RightPathControl := "Window14"
für x32 diese:

Code: Select all

v_ActivePathControl := "TMyPanel3" 
v_LeftPathControl := "TPathPanel1" 
v_RightPathControl := "TPathPanel2"
This account is for sale
Post Reply