Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Gabor

#1
That leaves offering stations (or no radio) in a GUI at startup, with a note that the radio will open in the browser. This should also make it clear that stopping the radio is the player's job. The problem remains that the browser pops up on top of the game window... if minimising the default browser cannot be done from the script, is there any way to bring the AGS window to the front after the station is opened in the browser? Reaching out from AGS to Windows is probably as messy as detecting if the game window is being closed.

I have looked into writing some Delphi code but to my surprise playing a remote audio stream is not straightforward... I may have to read more on this.  ???
#2
Good point. Once past the technical hurdle, at startup I would give the user the option in a GUI to start the radio, or even to choose from some stations. One of the options, possibly the default, would be not to start the radio.
#3
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

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.
SMF spam blocked by CleanTalk