AutoHotkey: Start Notepad In Lister

From TotalcmdWiki
Revision as of 12:56, 1 June 2006 by Icfu (talk | contribs) (Optimized AHK syntax)
Jump to navigation Jump to search

Pressing F4 in TC Lister starts Notepad with the active document. If you want to start an alternative utility instead, replace notepad.exe with the appropriate path.

#IfWinActive, ahk_class TLister
F4::
WinGetTitle, title
left := InStr(title, "[") + 1
right := InStr(title, "]") - left
StringMid, listerpath, title, left, right
WinClose, ahk_class TLister
Run, notepad.exe "%listerpath%"
Return


Back to AutoHotkey