mikke89/RmlUi

open a link in the web browser?

Grise3 opened this issue · 2 comments

Hello, I'd like to know if it is possible to open an internet link in a web browser when pressing a button in a game menu, and, if it is possible, how to do it.
Thanks.

Hey there, this should be as simple as handling the "click" event on the link, read the href attribute of the element, or however you store the URL. Then it is only a matter of issuing this URL to the OS, there should be plenty of resources online for this specifically, e.g. here is one from stack overflow.

Ok, thanks!