AutoHotkey: Start Notepad In Lister

From TotalcmdWiki
Revision as of 09:48, 16 July 2005 by Icfu (talk | contribs)
(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 want to start a different editor exchange the line containing notepad.exe

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