Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load a webpage externally
#5
(04-24-2022, 01:28 AM)James D Jarvis Wrote: okay.... how does that even work? I know it does because I used it earlier on two programs I'm working on that spit out htm files.  But how does the shell know to open your default web browser? It works for local files with the .htm extension just fine and dandy but I must admit, I'm baffled as to why.

In Windows Explorer, all programs open to whatever you set them to, or if you don't set them, a default program is often used, like NotePad, for text files. The SHELL call probably uses that info. So it automatically finds the path and browser exe. I haven't cared to spend the time to figure out if http, https, or .php, .html, etc. all or just some alert the system to open the browser.

Of course if you want a different browser, and you don't want to change your default browser in Explorer, you just add the name of the browser in the SHELL.


website$ = "https://qb64phoenix.com/forum/index.php"

SHELL _HIDE _DONTWAIT "Firefox.exe " + website$

Pete
Fake News + Phony Politicians = Real Problems

Reply


Messages In This Thread
Load a webpage externally - by Michelle - 04-22-2022, 08:26 PM
RE: Load a webpage externally - by Pete - 04-22-2022, 08:40 PM
RE: Load a webpage externally - by Michelle - 04-22-2022, 09:41 PM
RE: Load a webpage externally - by James D Jarvis - 04-24-2022, 01:28 AM
RE: Load a webpage externally - by Pete - 04-24-2022, 01:42 AM
RE: Load a webpage externally - by James D Jarvis - 04-24-2022, 01:51 AM
RE: Load a webpage externally - by admin - 04-24-2022, 01:54 AM
RE: Load a webpage externally - by dano - 04-26-2022, 01:57 AM
RE: Load a webpage externally - by Pete - 04-26-2022, 02:26 AM



Users browsing this thread: 1 Guest(s)