-
Notifications
You must be signed in to change notification settings - Fork 1
/
散件火种.ahk
125 lines (104 loc) · 2.61 KB
/
散件火种.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#if v_current_hero=6 and WinActive("ahk_class D3 Main Window Class")
~WheelUp::
~WheelDown::
{
if(v_change_weapon){
BlockInput On
send, {C}
Sleep, 50
PixelGetColor, color, 1762, 275
;MsgBox, %color%
if(color = 0x1C5D57){
showMsg("火影")
}else{
showMsg("金钟")
}
Click, Right, 1531, 837
Sleep, 20
Click, Right, 1580, 838
Sleep, 20
Click, Right, 1630, 838
Sleep, 20
Click, Right, 1680, 838
Sleep, 20
Click, Right, 1730, 838
Sleep, 20
Click, Right, 1780, 838
Sleep, 20
send,{alt down}
Click, Right, 1830, 838
Sleep, 20
Click, Right, 1880, 838
Sleep, 20
send,{alt up}
send, {C}
BlockInput off
moveToCenter()
}
}
return
#If
monkSkillOn:=0
sanJianMonkSkillStart()
{
global v_loop
global v_current_hero
global v_current_hero_name
global monkSkillOn
monkSkillOn:=1
send, {e}
;SetTimer, Label1, 500 ;动作条技能1键600毫秒连点
;SetTimer, Label2, 250 ;动作条技能2键600毫秒连点
SetTimer, Label3, 4800 ;动作条技能3键600毫秒连点
SetTimer, Label4, 600 ;动作条技能4键600毫秒连点
;SetTimer, MouseLButton, 300 ;鼠标左键150毫秒连点
;SetTimer, MouseRButton, 300 ;鼠标右键600毫秒连
SetTimer, forceClick, 500 ;鼠标左键150毫秒连点
Send {space down} ;按住强制移动键x,x可改动
}
return
sanJianMonkSkillStop(){
global monkSkillOn
monkSkillOn:=0
SetTimer, Label1, off ;关闭技能1连点计时器,off不可改动
SetTimer, Label2, off ;关闭技能2连点计时器,off不可改动
SetTimer, Label3, off ;关闭技能3连点计时器,off不可改动
SetTimer, Label4, off ;关闭技能4连点计时器,off不可改动
SetTimer, MouseLButton, off ;关闭左键连点计时器,off不可改动
SetTimer, MouseRButton, off ;关闭右键连点计时器,off不可改动
SetTimer, forceClick, off
Send {space up} ;松开强制移动键x,x可改动
if(GetKeyState("w")){
send, {w Up}
}
}
return
#if monkSkillOn=1 and WinActive("ahk_class D3 Main Window Class")
monk_skill:=2
$w::
{
;如果键是按下的(或打开了), 函数返回 1, 如果是松开的, 则返回 0
v_w:=GetKeyState("w")
if(v_w){
showMsg("金钟 关")
;SetTimer, MouseLButton, 150 ;鼠标左键150毫秒连点,150可改动
;SetTimer, MouseLButton, 200
Send {space down}
send, {w Up}
}else{
SetTimer, MouseLButton, off ;关闭左键连点计时器,off不可改动
showMsg("金钟 开")
;SetTimer, MouseLButton, off
Send {space up}
send, {w Down}
}
}
return
~q::
{
showMsg("q技能关")
SetTimer, Label1, off ;关闭技能1连点计时器,off不可改动
}
return
#If