Opens the game page of a random game you own from your GOG library, including from third-party plugins.
Works by pulling data from GOG's internal SQLite DB and then using their URI handler to open the game by its unique identifier. GOG may change the structure of these at any time, so this may stop working without warning.
This Gist is licensed under the MIT license.
In order to pull data from the internal database, you need access to sqlite3. Here are install instructions. I'm working on trying to bundle these directly into an EXE so that less technical people can get this working without needing to install anything. If anyone has any suggestions on how, let me know!
If like me, the command prompt window bugs you, you can use iexpress.exe (bundled with windows) to turn this into an exe file and hide the command prompt window entirely. It also appears to make it a bit faster (probably because of the time to launch command prompt and create the window).
- Download the cmd file below
- Launch iexpress.exe AS AN ADMINISTRATOR
- Press next until you get to "Package title", type whatever you want (this is never shown)
- Press next until you get to "Packaged files", and select the cmd file wherever you downloaded it.
- Press next, and under "Install Program" write
cmd /c "Random Galaxy Game.cmd"
- Press next, and under "Show window" press "hidden"
- Press next until you get to the "package name and options" page. Select both of the options, and in the file select box enter where you want your exe to be saved.
- Press next, and select "No restart"
- Press next and choose "Don't save"
- Press next, then finish.