AutoHotkey: Starte Notepad im Lister: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Icfu (Diskussion | Beiträge) (Optimierte AHK-Syntax) |
||
Zeile 1: | Zeile 1: | ||
Drücken der Taste F4 im Lister startet Notepad mit dem aktiven Dokument. | 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 | Return | ||
{{Rückverweis|AutoHotkey|AutoHotkey}} | {{Rückverweis|AutoHotkey|AutoHotkey}} | ||
[[en:AutoHotkey: Start Notepad In Lister]] | [[en:AutoHotkey: Start Notepad In Lister]] | ||
Pressing F4 in TC Lister starts Notepad with the active document. | |||
If you prefer an alternative utility, replace '''''notepad.exe''''' with the appropriate path. |
Version vom 1. Juni 2006, 13:33 Uhr
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.