I thought it would be nice to launch an online radio station when the game starts, and it should stop when the game is closed.
I have the AGS Shell Plugin in place, and in GlobalScript.asc in game_start() I added
Code: ags
This starts the station nicely, but the browser pops up and covers the game (which runs in a window). I have tried various command switches to start the browser minimised, this works with Chrome if the browser is not yet running... but what if Chrome is not installed? Edge comes with Win10 but I couldn't get it to run minimised, similar troubles with iexplorer.exe
Ideally the station should start without a browser popping up at all, but I could live with the browser if it can be forced to minimise and open the station in a new tab.
Any help would be most welcome.
Thanks,
Gabor
PS: AGS is wonderful, thanks for all the time, effort and expertise people pour into it. I started long ago with a Commodore 64 and AGS has brought back my memories... invaluable.
I have the AGS Shell Plugin in place, and in GlobalScript.asc in game_start() I added
ShellExecute("", "https://xxxxxxxxx.com/xxxxxxxmp3", "");
This starts the station nicely, but the browser pops up and covers the game (which runs in a window). I have tried various command switches to start the browser minimised, this works with Chrome if the browser is not yet running... but what if Chrome is not installed? Edge comes with Win10 but I couldn't get it to run minimised, similar troubles with iexplorer.exe
Ideally the station should start without a browser popping up at all, but I could live with the browser if it can be forced to minimise and open the station in a new tab.
Any help would be most welcome.
Thanks,
Gabor
PS: AGS is wonderful, thanks for all the time, effort and expertise people pour into it. I started long ago with a Commodore 64 and AGS has brought back my memories... invaluable.