-
Notifications
You must be signed in to change notification settings - Fork 3
/
_chrome.ahk
67 lines (58 loc) · 1.09 KB
/
_chrome.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
;chrome
!2::
GetKeyState, state, LButton
exclude := ""
if(state = "D") {
WinGet, this_id, ID,Developer Tools,
WinActivate ahk_id %this_id%
} else {
WinGet, id, list,ahk_class Chrome_WidgetWin_1,, Developer Tools
Loop, %id%
{
this_id := id%A_Index%
WinActivate ahk_id %this_id%
;WinGetTitle, title, ahk_id %this_id%
;MsgBox %title%
return
}
Run chrome
}
return
#IfWinActive ahk_class Chrome_WidgetWin_1
;命令行操作
~Shift & WheelUp::
SendEvent {Up}
return
~Shift & WheelDown::
SendEvent {Down}
return
~Shift & MButton::
SendInput clear(){Enter}
return
;调试操作
~Alt & WheelDown::
GetKeyState, state, Shift
if(state = "D"){
SendEvent {F11}
} else {
SendEvent {F10}
}
return
~Alt & WheelUp::
SendEvent {Shift down}{F11}{Shift up}
return
~Alt & MButton::
SendEvent {F8}
return
~Alt & RButton::
SendEvent {F12}
return
~!+l::
SendEvent {Ctrl down}l{Ctrl up}
Sleep 50
SendEvent {Ctrl down}c{Ctrl up}
text = %ClipBoard%
StringReplace, text, text, localhost, %A_IPAddress1%
ClipBoard = %text%
return
#IfWinActive