-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfunctionKeys.ahk
74 lines (68 loc) · 1.79 KB
/
functionKeys.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
;=====================================================================
; Function Keys
;---------------------------------------------------------------------
; After Alt-Tab, move mouse to center of newly activated window.
;~!Tab::
;KeyWait, Alt
;KeyWait, Tab
;moveMouseToWindowCenter()
;return
;-----------------------------------o
;CapsLock & /:: Send ^/ ;Toggle Line Comment
;-----------------------------------o
;CapsLock & \:: Send +!a ;Toggle Block Comment
;-----------------------------------o
;-----------------------------------o Goto files pane
#f::
if WinActive("ahk_class CabinetWClass") { ; Windows Explorer
ControlFocus, DirectUIHWND3, A
SendInput, {Space}
return
}
return
;-----------------------------------o Goto Navigation pane
#n::
if WinActive("ahk_class CabinetWClass") { ; Windows Explorer
ControlFocus, SysTreeView321, A
SendInput, {Space}
return
}
return
;-----------------------------------o copy file full path to clipboard
Capslock & \::
if WinActive("ahk_class CabinetWClass") {
SendInput, ^c
Sleep 100
Clipboard := Clipboard
return
}
return
;-----------------------------------o Virtual machine
#v::
Run "%virtualMachineManager%"
return
;-----------------------------------o Goto Navigation pane
#d::
Run, %A_Desktop%
return
;----------------------------------o ctl+alt+c: Copy and search with google
^!c::
{
Send, ^c
Sleep 50
Run, "%searchEngine%/search?q=%clipboard%"
Return
}
;---------------------------------o
^#!l::
RefreshEnvironment()
Send, ^s ; To save a changed script
Sleep, 300 ; give it time to save the script
Reload
Return
#!^c::
TrayTip, AutoHotKey, Exited, 1
Sleep 1000
ExitApp
return
#include %A_LineFile%\..\create-new-file.ahk.