Skip to content

Commit

Permalink
Add update skip window (to exit the script early)
Browse files Browse the repository at this point in the history
  • Loading branch information
C0Nd3Mnd committed May 13, 2022
1 parent d201edb commit ce7356c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.3.0 (2022-05-13)

- 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

## v0.2.1 (2022-02-15)

- Fixed username input field not being focused in some cases in recent Riot Client versions
Expand Down
10 changes: 9 additions & 1 deletion fass.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;@Ahk2Exe-SetMainIcon fass.ico

global AppVersion := "0.2.1"
global AppVersion := "0.3.0"
global IniPath := "settings.ini"

;;; CHOOSE ACCOUNT
Expand Down Expand Up @@ -166,6 +166,13 @@ Main:
; Login button
Send, {Enter}

; Show skip window to exit early.
SkipPosX := A_ScreenWidth - 300
SkipPosY := A_ScreenHeight - 140
Gui, Skip:New,, Update Skip
Gui, Skip:Add, Button, w240 gExit, Exit Early (Update Skip)
Gui, Skip:Show, x%SkipPosX% y%SkipPosY%

; Press play if the window still exists (sometimes it doesn't launch
; automatically).
Loop {
Expand All @@ -181,4 +188,5 @@ Main:
}
}

Exit:
ExitApp, 0

0 comments on commit ce7356c

Please sign in to comment.