EAC hinzugefügt
This commit is contained in:
13
configs/autohotkey/Lib.ahk
Normal file
13
configs/autohotkey/Lib.ahk
Normal 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", " ")
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
#Requires AutoHotkey v2.0
|
||||
#NoTrayIcon
|
||||
;Mit Strg, Shift + M wird ein leeres Textfile erzeugt.
|
||||
#HotIf ("ahk_class CabinetWClass")
|
||||
^+m::
|
||||
|
||||
17
configs/autohotkey/OpenVSC.ahk
Normal file
17
configs/autohotkey/OpenVSC.ahk
Normal 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
|
||||
}
|
||||
16
configs/autohotkey/OpenWt.ahk
Normal file
16
configs/autohotkey/OpenWt.ahk
Normal 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user