diff --git a/configs/autohotkey/NewTxt.ahk b/configs/autohotkey/NewTxt.ahk index 9dcc182..bf473a8 100644 --- a/configs/autohotkey/NewTxt.ahk +++ b/configs/autohotkey/NewTxt.ahk @@ -1,5 +1,7 @@ #Requires AutoHotkey v2.0 +#Include Lib.ahk #NoTrayIcon + ;Mit Strg, Shift + M wird ein leeres Textfile erzeugt. #HotIf ("ahk_class CabinetWClass") ^+m:: @@ -11,17 +13,6 @@ } #HotIf -;Ermittelt den aktuellen Pfad -GetPath(_hwnd) -{ - for w in ComObject("Shell.Application").Windows - if (w.hwnd = _hwnd) - { - path := StrReplace(w.LocationURL, "file:///") - return StrReplace(path, "%20", " ") - } -} - ;Schreibt die Datei CreateFile(path) {