AutoHotkey: Start Notepad In Lister: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
(Interwiki de)
No edit summary
Line 17: Line 17:


Back to [[AutoHotkey]]
Back to [[AutoHotkey]]
[[de:AutoHotkey: Start Notepad In Lister]]
 
[[de:AutoHotkey: Starte Notepad im Lister]]

Revision as of 21:56, 25 September 2005

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

; If you want to start an alternative editor instead, replace notepad.exe to match yours.

~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


Back to AutoHotkey