diff --git a/.github/workflows/ahk-lint-format-compile.yml b/.github/workflows/ahk-lint-format-compile.yml index d6b76ab..9c95898 100644 --- a/.github/workflows/ahk-lint-format-compile.yml +++ b/.github/workflows/ahk-lint-format-compile.yml @@ -19,10 +19,20 @@ jobs: - uses: actions/checkout@v6 - name: Install AutoHotkey v1.1 (Portable) - run: choco install autohotkey.portable --version=1.1.36.01 -y + run: | + for ($i = 0; $i -lt 3; $i++) { + choco install autohotkey.portable --version=1.1.36.01 -y + if ($LASTEXITCODE -eq 0) { break } + Start-Sleep -Seconds 5 + } shell: pwsh - name: Install AutoHotkey v2 - run: choco install autohotkey -y + run: | + for ($i = 0; $i -lt 3; $i++) { + choco install autohotkey -y + if ($LASTEXITCODE -eq 0) { break } + Start-Sleep -Seconds 5 + } shell: pwsh - name: Verify Installations run: | diff --git a/Other/playnite-all.ahk b/Other/playnite-all.ahk index 54eee9c..7e44945 100644 --- a/Other/playnite-all.ahk +++ b/Other/playnite-all.ahk @@ -19,8 +19,7 @@ PlayBootVideo() { vlcPath := MustGetExe("vlc.exe", ["C:\Program Files\VideoLAN\VLC\vlc.exe"]) bootVideo := A_ScriptDir . "\BootVideo.mp4" vlcArgs := '--fullscreen --video-on-top --play-and-exit --no-video-title -Idummy "' . bootVideo . '"' - RunWait('cmd.exe /c START "" "' . vlcPath . '" ' . vlcArgs, , "hide") - DllCall("kernel32.dll\Sleep", "UInt", 3000) + RunWait('"' . vlcPath . '" ' . vlcArgs, , "hide") } LaunchPlaynite() { playniteExe := MustGetExe(