-
Notifications
You must be signed in to change notification settings - Fork 1
/
切换英雄.ahk
90 lines (78 loc) · 1.18 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
#if v_trg = 1 and WinActive("ahk_class D3 Main Window Class")
$^1::
{
changeHeroSkill(1)
}
return
$^2::
{
changeHeroSkill(2)
}
return
$^3::
{
changeHeroSkill(3)
}
return
$^4::
{
changeHeroSkill(4)
}
return
$^5::
{
changeHeroSkill(5)
}
return
$^6::
{
changeHeroSkill(6)
}
return
$^7::
{
changeHeroSkill(7)
}
return
$^8::
{
changeHeroSkill(8)
}
return
$^9::
{
changeHeroSkill(9)
}
return
#if
changeHeroSkill(x = 0){
global v_current_hero
global v_current_hero_name
v_current_hero:=x ;当前英雄 1=圣教军 2=魔法师 3=武僧 4=奶僧
stop()
if(x = 1){
v_current_hero_name:="圣教军"
}else if(x = 2){
v_current_hero_name:="魔法师"
}else if (x = 3){
v_current_hero_name:="武僧"
}else if (x = 4){
v_current_hero_name:="奶僧"
}else if (x = 5){
v_current_hero_name:="塔魔法师"
}else if (x = 6){
v_current_hero_name:="散件火钟"
}else if (x = 7){
v_current_hero_name:="幻魔荆棘"
}else if (x = 8){
v_current_hero_name:="不朽野蛮人"
}else if (x = 9){
v_current_hero_name:="猎魔"
}
else{
v_current_hero_name:="圣教军"
}
showMsg("切换" v_current_hero_name "技能")
FileDelete, hero.config
FileAppend, %x%, hero.config
}