ma73 > 2020-01-22 05:31
Jean Lalonde > 2020-01-22 10:35
ma73 > 2020-01-23 04:46
(2020-01-22 10:35)Jean Lalonde Wrote: I run the script. I have not been able to make it get the current path. The window title is changed but path is empty.
Did it work for you?
#IfWinExist, ahk_class TTOTAL_CMD
; Default shortcut is Win-A
$#a::
; Get the handle of the control that contains the current path
SendMessage, 1074, 17
; Get the current path
WinGetText, PathInTC, ahk_id %ErrorLevel%
; Cut off the trailing > and newline signs
StringTrimRight, PathInTC, PathInTC, 3
Send, {Raw}%PathInTC%\
Return
Jean Lalonde > 2020-01-23 10:58
ma73 > 2020-01-23 12:32
Jean Lalonde > 2020-01-23 15:00
ma73 > 2020-02-06 05:37
Jean Lalonde > 2020-02-06 15:23
Jean Lalonde > 2020-03-09 14:04
ma73 > 2020-03-10 07:26