Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
putting a clickable hyperlink in your qb64pe program?
#3
(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? 

Google seems to think there is a LINK command, e.g., 
Code: (Select All)
LINK "http://www.qb64.org"
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.
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 
         $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"
Reply


Messages In This Thread
RE: putting a clickable hyperlink in your qb64pe program? - by ahenry3068 - 10-21-2025, 11:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)