-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathSublimeText.ahk
More file actions
40 lines (36 loc) · 819 Bytes
/
SublimeText.ahk
File metadata and controls
40 lines (36 loc) · 819 Bytes
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
#IfWinActive ahk_class PX_WINDOW_CLASS
+Enter::
Send ^s
SetTitleMatchMode, 2
Sleep, 200
IfWinExist, unregistered
WinClose
SetTitleMatchMode, RegEx
WinGetTitle, Title, A
If InStr(Title, ".ahk")
{
Run % Substr(Title, RegExMatch(Title, "P).*.ahk", matchlength), matchlength)
Notify("File Executed",Title,-2,"GC=555555 TC=White MC=White")
}
Return
~^s::
SetTitleMatchMode, 2
Sleep, 200
IfWinExist, unregistered
WinClose
SetTitleMatchMode, RegEx
Return
!LButton::
Send {LButton 2}
Return
#IfWinActive
;http://www.autohotkey.com/community/viewtopic.php?t=50364&start=15#p551784
#IfWinActive .*ahk .*
F1::
ClipClear()
Send ^c
ClipWait
SetTitleMatchMode, RegEx
Run chrome.exe "http://google.com/search?btnI=1&q=%clipboard%%A_Space%Autohotkey"
Return
#IfWinActive