AutoHotkey: Start Notepad In Lister

From TotalcmdWiki
Revision as of 22:53, 1 June 2008 by White (talk | contribs) (Added category AutoHotkey scripts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Pressing F4 in TC Lister starts Notepad with the active document.

If you prefer an alternative utility, replace notepad.exe with the appropriate path.

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


Back to AutoHotkey