AutoHotkey: Starte Notepad im Lister

Aus TCWikide
Version vom 1. Juni 2006, 13:33 Uhr von Icfu (Diskussion | Beiträge) (Optimierte AHK-Syntax)
Zur Navigation springen Zur Suche springen

Drücken der Taste F4 im Lister startet Notepad mit dem aktiven Dokument. Wenn Du ein Alternativprogramm bevorzugst, ersetze notepad.exe mit dem entsprechenden Pfad.

#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




->Zurück zu AutoHotkey



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

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