-
Notifications
You must be signed in to change notification settings - Fork 22
/
WindowsExplorer.ahk
81 lines (70 loc) · 1.67 KB
/
WindowsExplorer.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#IfWinActive ahk_class CabinetWClass
F6::
;RegWrite, REG_DWORD, HKCU, Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState, FullPath, 1
WinGetActiveTitle, title
Run, C:\Program Files (x86)\Everything\Everything.exe -path "%title%"
WinWaitActive, Everything,, 3
If Errorlevel
Return
Send {End}
Return
F7::
WinGetActiveTitle, title
Run, C:\Program Files\grepWin\grepWin.exe /searchpath:%title%
WinActivate, grepWin,, 3
If ErrorLevel
Return
Return
Esc::
If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500)
WinClose
Else
Send, {Esc}
Return
+Backspace::Send !{Up}
^k::
clipboard := Explorer_GetSelected()
ClipWait
Notify("File Dir Copied",clipboard,-1,"Style=Win10")
return
^l::
dir := Explorer_GetPath()
clipboard := dir
ClipWait
Notify("File Dir Copied",clipboard,-1,"Style=Win10")
return
CapsLock::
If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500)
{
FullFileName := Explorer_GetSelected()
SplitPath, FullFileName, name, dir, ext, name_no_ext, drive
clipboard := name
ClipWait
Notify("Filename Copied",clipboard,-1,"Style=Win10")
}
Return
^e::
+Enter::
sel := Explorer_GetSelected()
Run %Editor% "%sel%"
Return
^+Enter::
sel := Explorer_GetSelected()
Run %Editor% --add "%FullFileName%"
Return
#IfWinActive
#IfWinActive ahk_class SearchPane
Tab::Send {Tab}{Down}{Enter}
#IfWinActive
#If MouseIsOver("ahk_class Shell_TrayWnd")
MButton::
If (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500)
{
Run taskmgr.exe
WinWait, Task Manager
WinActivate, Task Manager
}
#If
#IfWinActive, ahk_class #32770 Run
Tab::Down
#IfWinActive