Skip to content

Commit ce7356c

Browse files
committed
Add update skip window (to exit the script early)
1 parent d201edb commit ce7356c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.3.0 (2022-05-13)
4+
5+
- Added possibility to exit the script early - this is useful when an update takes longer than a few seconds and would therefore be paused and resumed continuously by the script
6+
37
## v0.2.1 (2022-02-15)
48

59
- Fixed username input field not being focused in some cases in recent Riot Client versions

fass.ahk

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;@Ahk2Exe-SetMainIcon fass.ico
22

3-
global AppVersion := "0.2.1"
3+
global AppVersion := "0.3.0"
44
global IniPath := "settings.ini"
55

66
;;; CHOOSE ACCOUNT
@@ -166,6 +166,13 @@ Main:
166166
; Login button
167167
Send, {Enter}
168168

169+
; Show skip window to exit early.
170+
SkipPosX := A_ScreenWidth - 300
171+
SkipPosY := A_ScreenHeight - 140
172+
Gui, Skip:New,, Update Skip
173+
Gui, Skip:Add, Button, w240 gExit, Exit Early (Update Skip)
174+
Gui, Skip:Show, x%SkipPosX% y%SkipPosY%
175+
169176
; Press play if the window still exists (sometimes it doesn't launch
170177
; automatically).
171178
Loop {
@@ -181,4 +188,5 @@ Main:
181188
}
182189
}
183190

191+
Exit:
184192
ExitApp, 0

0 commit comments

Comments
 (0)