I was wondering how to gracefully close Firefox when starting most demanding games, turns out you can do that with the new "Scripts" features :
Edit a game entry, on the Scripts sub menu add the following PowerShell snippet :
If you want to restart Firefox after the game end, add this one :
That's it!
Edit a game entry, on the Scripts sub menu add the following PowerShell snippet :
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate("- Mozilla Firefox")
$wshell.SendKeys("+^{q}")
If you want to restart Firefox after the game end, add this one :
& "C:\Program Files\Mozilla Firefox\firefox.exe"
That's it!