-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path蛮子辅助.ahk
executable file
·82 lines (71 loc) · 1.51 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
#IfWinActive,ahk_class D3 Main Window Class
#SingleInstance force ;只能启动一个ahk程序实例,防止重复启动
SetKeyDelay, 50
SetMouseDelay, 50
;宏控制变量
masterFlag := 0
;控制释放技能的
autoClickFlag := 0
;控制左键连点的变量
clickFlag := 0
$MButton:: ;鼠标中键为宏开关键,可修改为其它键
{
if(masterFlag=0){
masterFlag = 1
autoClickFlag = 1
clickFlag = 1
}else{
masterFlag = 0
autoClickFlag = 0
}
if (masterFlag=0)
{
SetTimer, ReleasesSkills, off ;关闭
SetTimer, MouseLButton, off
}
else
{
SetTimer, ReleasesSkills, 1000
SetTimer, MouseLButton, 50
}
}
Return
$XButton1:: ;开关鼠标连点,键时鼠标第四键,可修改
{
clickFlag = !clickFlag
}
Return
closeClick: ;开关鼠标连点
{
clickFlag = 0
}
Return
MouseLButton: ;左键连点计时器设置
{
if(clickFlag = 1){
send h ;点击强制移动键
}
}
Return
~Enter:: ;回车打字关闭宏
~T:: ;按T回城关闭宏
~S:: ;按S查看技能关闭宏
~B:: ;按B查看装备关闭宏
~M:: ;按M查看悬赏关闭宏
{
SetTimer, ReleasesSkills, off ;关闭
SetTimer, MouseLButton, off ;关闭
masterFlag = 0
}
Return
ReleasesSkills:
{
If (autoClickFlag = 1)
{
Send 2
Send 4
Click, , right
}
}
return
~=::Pause ;宏暂停或继续