AutoHotkey: Start Notepad In Lister: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
right := InStr(title, "]") - left | right := InStr(title, "]") - left | ||
StringMid, listerpath, title, left, right | StringMid, listerpath, title, left, right | ||
WinClose | WinClose | ||
Run, %editor% "%listerpath%" | Run, %editor% "%listerpath%" | ||
Return | Return |
Revision as of 13:14, 1 June 2006
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