ageekhere / Definitive-Supreme-Commander-Launcher

1 stars 1 forks source link

Autohotkey WinRestore issue with launcher #1

Closed ageekhere closed 2 months ago

ageekhere commented 2 years ago

One for the problems which I could no solve is the restore launcher window after exit game/client.

exitProc:
    if (ProcessExist(procName) = 0)
    {
        ;//NOTE due to a bug Restoring the Launcher window after the game exits does not work correctly
        ;if (ProcessExist("Definitive Supreme Commander Launcher.exe") != 0)
        ;{
            ;WinRestore , ahk_exe Definitive Supreme Commander Launcher.exe 
        ;}
        quit()
    }
    ; //Restore the client once (if used) when game has stopped running
    if (ProcessExist(procGame) = 0 && restoreWindow = true && ProcessExist(procName) != 0)
    {
        WinRestore , ahk_exe %procName%
        restoreWindow := false
    }   
return

After using WinRestore the launcher window becomes small window

ageekhere commented 2 months ago

This issues has been fixed in version1.07