04-24-2022, 01:42 AM
(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
Shoot first and shoot people who ask questions, later.