EAC hinzugefügt

This commit is contained in:
2023-04-18 18:10:52 +02:00
parent b6fdba3137
commit a36255e7df
5 changed files with 48 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
#Requires AutoHotkey v2.0
#NoTrayIcon
;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", " ")
}
}

View File

@@ -1,4 +1,5 @@
#Requires AutoHotkey v2.0
#NoTrayIcon
;Mit Strg, Shift + M wird ein leeres Textfile erzeugt.
#HotIf ("ahk_class CabinetWClass")
^+m::

View File

@@ -0,0 +1,17 @@
#Requires AutoHotkey v2.0
#Include Lib.ahk
#NoTrayIcon
;Mit Strg, Alt + P wird der aktuell Ordner im Terminal geöffnet.
!c::
{
HotIfWinActive "ahk_class CabinetWClass"
{
WinID := WinGetID("ahk_class CabinetWClass")
Path := GetPath(WinID)
code := A_AppData . "\Local\Programs\Microsoft VS Code\Code.exe"
Run 'code "-n" Path'
}
Return
}

View File

@@ -0,0 +1,16 @@
#Requires AutoHotkey v2.0
#NoTrayIcon
#Include Lib.ahk
;Mit Strg, Alt + P wird der aktuell Ordner im Terminal geöffnet.
^!p::
{
HotIfWinActive "ahk_class CabinetWClass"
{
WinID := WinGetID("ahk_class CabinetWClass")
Path := GetPath(WinID)
Run 'wt -d ' Path
}
Return
}