Skip to content

Commit b884788

Browse files
committed
Speed up program loading at first startup
1 parent 6e6a836 commit b884788

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Interface.ahk

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Finally
8282
RunWait, PowerShell.exe -Command "Get-ChildItem -Path C:/ -Recurse -Filter '*BH3_Hotkey*.ini' | Remove-Item -Force" -Command "Exit", , Hide
8383
Catch
8484
MsgBox, 16, Warning, Failed to run Shell!
85+
/*
8586
TestString := %已执行%
8687
IniWrite, %TestString%, %INI_DIR%, Initial, %执行初始化进程%
8788
@@ -110,10 +111,12 @@ Finally
110111
111112
IniWrite, 1, %INI_DIR%, Params, %正常战斗状态识别容错率_目标%
112113
IniWrite, 1, %INI_DIR%, Params, %正常战斗状态识别容错率_背景%
113-
IniWrite, 12, %INI_DIR%, Params, %濒危战斗状态识别容错率_目标%
114-
IniWrite, 12, %INI_DIR%, Params, %濒危战斗状态识别容错率_背景%
114+
IniWrite, 3, %INI_DIR%, Params, %濒危战斗状态识别容错率_目标%
115+
IniWrite, 3, %INI_DIR%, Params, %濒危战斗状态识别容错率_背景%
115116
IniWrite, 1, %INI_DIR%, Params, %往世乐土大厅识别容错率_目标%
116117
IniWrite, 1, %INI_DIR%, Params, %往世乐土大厅识别容错率_背景%
118+
*/
119+
FileInstall, Config/Preset_Keyboard/BH3_Hotkey.ini, %INI_DIR%, 1
117120
}
118121
Try ;IfExist, %INI_DIR%
119122
{
@@ -149,8 +152,8 @@ Finally
149152
}
150153
Finally
151154
{
152-
/*
153155
; Not working with dict
156+
/*
154157
Dict := {"MouseKey1": "LButton", "MouseKey2": "MButton", "MouseKey3": "RButton", "MouseKey4": %无%}
155158
Counter := 0
156159
For Key, Value in Dict
@@ -173,7 +176,7 @@ Finally
173176
If (Key_Reload2 == "%Value%")
174177
Key_Reload2_DDL := %Counter%
175178
}
176-
*/
179+
*/
177180
; But works with list
178181
List := ["LButton", "MButton", "RButton", %无%]
179182
Loop % List.Length()

0 commit comments

Comments
 (0)