10-21-2025, 11:57 PM
(This post was last modified: 10-22-2025, 12:00 AM by ahenry3068.)
(10-21-2025, 11:35 PM)madscijr Wrote: Is there a way to do this? i.e., put a clickable link on a text screen or a graphic screen, that opens a URL in whatever the user's default browser is?Rho gave you the right answer. In linux you want to precede the link with xdg-open http://mylink for the shell target. I use START also in Windows. I actually use an OpenCMD$ and set it's value with
Google seems to think there is a LINK command, e.g.,
but that just gets me a syntax error, and I'm not finding anything in the wiki or searching the forums, but maybe I'm doing it wrong.Code: (Select All)LINK "http://www.qb64.org"
$IF WINDOWS THEN
OpenCmd$ = "START "
$END IF
$IF LINUX THEN
OpenCmd$ = "xdg-open "
$END IF
$IF MAC THEN
OpenCmd$ = "open "
$END IF
SHELL OpenCmd$ + "http://mylink.to.here"

