Don't use ClassNN with the x64 version. From my experience it gets assigned by Windows semi-randomly and is often (usually?) different between PC's. If you need to get the panel names for some reason, use this:
08.06.16 Added: Send WM_USER+50 with wparam=1..29 -> returns window handle of control. Controls are: 1=leftlist, 2=rightlist, 3=active list, 4=inactive list, 5=leftheader, 6=rightheader, 7=leftsize, 8=rightsize, 9=leftpath, 10=rightpath, 11=leftinfo, 12=rightinfo, 13=leftdrives, 14=rightdrives, 15=leftpanel, 16=rightpanel, 17=bottompanel, 18=lefttree, 19=righttree, 20=cmdline, 21=curdirpanel, 22=inplaceedit, 23=splitpanel, 24=leftdrivepanel, 25=rightdrivepanel, 26=lefttabs, 27=righttabs, 28=buttonbar, 29=buttonbarvertical (32/64)
This works:
Code: Select all
#IfWinExist, ahk_class TTOTAL_CMD
; Default shortcut is Win-A
$#a::
SendMessage, 1074, 17
WinGetText, PathInTC, ahk_id %ErrorLevel%
StringTrimRight, PathInTC, PathInTC, 3
Send, {Raw}%PathInTC%\
Return
You can still use the previous code which simply looks for the appropriate string:
Code: Select all
#IfWinExist, ahk_class TTOTAL_CMD
; Default shortcut is Win-A
$#a::
WinGetText, TCWindowText, ahk_class TTOTAL_CMD
RegExMatch(TCWindowText, "m).*?(?=>)", PathInTC)
Send, {Raw}%PathInTC%\
Return
HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.