-
Notifications
You must be signed in to change notification settings - Fork 1
/
Init.ahk
50 lines (38 loc) · 1.17 KB
/
Init.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
; 推荐安装官网的统一新环境,可以兼容多版本的AHK,按以下格式声明版本即可(缺少的它会自动下载)
#Requires AutoHotkey v2.0
#SingleInstance Force
; Core
#Include core/Game.ahk
#Include core/Mode.ahk
#Include core/Point.ahk
#Include core/PointExtractor.ahk
#Include core/Scenes.ahk
#Include core/Tools.ahk
; Module <-- 如果你想写新功能,请在这里引入
#Include module/Teleport.ahk
#Include module/Achievement.ahk
#Include module/Team.ahk
#Include module/Nircmd.ahk
; 初始化全局变量
global script_mode := ScriptMode() ; 构建脚本模式实例
; Mode
#Include mode\Normal.ahk
#Include mode\Switch.ahk
#HotIf
!`:: PointExtractor.getPoint()
!^`:: PointExtractor.searchColor()
; 大世界
#HotIf Game.is_game_active()
!1:: Team.choose_target_team(1)
!2:: Team.choose_target_team(2)
!3:: Team.choose_target_team(3)
!4:: Team.choose_target_team(4)
!5:: Team.choose_target_team(5)
; 队伍界面
#HotIf Game.is_game_active() && Scenes.IsTeamScene()
^A:: Team.choose_previous_team()
^D:: Team.choose_next_team()
^Space:: Team.confirm()
; 地图界面
#HotIf Game.is_game_active() && Scenes.IsMapScene()
; ^T:: Teleport.fastTeleport()