This repository was archived by the owner on Sep 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSRES.ahk
More file actions
105 lines (77 loc) · 2.21 KB
/
SRES.ahk
File metadata and controls
105 lines (77 loc) · 2.21 KB
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
; 推荐安装官网的统一新环境,可以兼容多版本的AHK,按以下格式声明版本即可(缺少的它会自动下载)
#Requires AutoHotkey v2.0
#SingleInstance Force
; Core
#Include core/StarRail.ahk
#Include core/Point.ahk
#Include core/Scenes.ahk
#Include core/PointExtractor.ahk
; Module
#Include module/BattlePass.ahk
#Include module/Teleport.ahk
#Include module/Achievement.ahk
#Include module/Assignments.ahk
#Include module/DailyTraining.ahk
#Include module/SimulatedUniverseIndex.ahk
#Include module/GetAllDailyRewards.ahk
#Include module/ThirdPartyTools.ahk
#Include module/Artifact.ahk
#Include module/Team.ahk
; Test
#Include test.ahk
; 脚本只在以下条件满足时执行
#HotIf StarRail.is_game_active()
; StarRail.get_game_pos()
; SetTimer () => StarRail.get_game_pos(), -3000
; 快速退出游戏
^Esc:: StarRail.close_game()
; 调试用功能,快速Reload脚本
^!r:: Reload
; 模拟宇宙快速强化
^Space::{
MouseGetPos(&x,&y)
strengthenBtn := Point(Pos(2284,987),Pos(1644,987))
Tools.MClick(strengthenBtn)
Sleep(200)
SendInput('{Esc}')
Sleep(500)
SendInput('{Esc}')
MouseMove(x,y)
}
; 鼠标快速连点
^!LButton::{
Click
clickPlus(){
if GetKeyState('LButton','P'){
Sleep(Random(100,150))
Click
} else {
SetTimer(clickPlus, 0)
}
}
SetTimer(clickPlus, 50)
}
; 还没适配16:9,最后再搞
^1::SimulatedUniverseIndex.EventReward()
^2::ThirdPartyTools.launch_tools()
!e::Artifact.Lock()
!d::Artifact.AbandonInBackpack()
; 调用nircmd调整星铁的音量
^3::ThirdPartyTools.adjust_volume()
; 在场景为大世界的时候启用以下功能
#HotIf StarRail.is_game_active() && Scenes.IsWorldScene()
^F1::Assignments.ClaimAssignmentsRewards()
^F2::BattlePass.ClaimBattlePassRewards()
^F3::Achievement.ClaimAchievementRewards()
^F4::DailyTraining.ClaimDailyTrainingRewards()
`::GetAllDailyRewards.ClaimAllRewards()
; 场景为地图时启用
#HotIf StarRail.is_game_active() && Scenes.IsMapScene()
^T::Teleport.fastTeleport()
#HotIf
!`::PointExtractor.getPoint()
!^`::PointExtractor.searchColor()
; =::Test.test()
; 拓展场景功能
#Include Keys1.ahk
#Include KeySwitch.ahk