I am trying to implement a help system for a GUI written in Win-Prolog. The obvious approach would seem to be HTML. Is it possible to open a browser with a given URL programatically from within WinProlog? Ideally I'd like to tie the browser open call to a button click or similar event.
To open a URL with the user preferred web browser try (assuming the URL is an atom):
open_in_web_browser(URL) :-
cat(['cmd /c start /D"', URL, "'"], Command, _),
exec(Command).