Talk:AutoHotkey: Paste TC's active path anywhere: Difference between revisions
Jump to navigation
Jump to search
(Another version without the fuss with the clipboard) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
Return | Return | ||
#IfWinExist | #IfWinExist | ||
[[User:Hacker|Hacker]] 07:44, 24 Jun 2006 (EST):<br /> | |||
Nice idea. I think it could also work like this: | |||
#IfWinExist, ahk_class TTOTAL_CMD | |||
$#a:: | |||
ControlGetText, Path, TMyPanel2 | |||
StringReplace, Path, Path, >, \ | |||
Send, %Path% | |||
Return | |||
Right, good idea. So it does work with the command line hidden? | |||
SanskritFritz | |||
[[User:Hacker|Hacker]] 04:42, 26 Jun 2006 (EST):<br /> | |||
Yes, it does. (It even invokes it :-) ) |
Latest revision as of 09:42, 26 June 2006
Thanks, Hacker!
SanskritFritz
Another version without the fuss with the clipboard
#IfWinExist ahk_class TTOTAL_CMD #a:: ControlGetText sPath, TMyPanel2 StringMid sPath, sPath, 1, StrLen(sPath) -1 Send %sPath%\ Return #IfWinExist
Hacker 07:44, 24 Jun 2006 (EST):
Nice idea. I think it could also work like this:
#IfWinExist, ahk_class TTOTAL_CMD $#a:: ControlGetText, Path, TMyPanel2 StringReplace, Path, Path, >, \ Send, %Path% Return
Right, good idea. So it does work with the command line hidden?
SanskritFritz
Hacker 04:42, 26 Jun 2006 (EST):
Yes, it does. (It even invokes it :-) )