getting my help files to launch in a web browser

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

getting my help files to launch in a web browser

Post by magice » Fri Feb 18, 2011 6:11 pm

I have created a series of help documents for my current project in HTML format. I would like them to launch in the systems default browser when the help button is pushed. They will be located in a "helpfile" directory within the programs installation directory. I thought the following code would work.

Code: Select all

on mouseUp  
launch url "file:///helpfile/helpfile.html"
end mouseUp
Unfortunately it does nothing. My first thought was that maybe i needed the entire file path, not just the path relative to my app so I tried this.

Code: Select all

on mouseUp  
launch url "file:///C:/Documents and Settings/Admin/Desktop/DKP Scribe/helpfile/helpfile.html"
end mouseUp
This did not launch a browser window either. Can someone give me some direction on how to get this to work? I would prefer to be able to use the file path relative to my app as opposed to the full file path since the location of the program will not be the same for all users.
Thank you

magice
Posts: 457
Joined: Wed Mar 18, 2009 12:57 am

Re: getting my help files to launch in a web browser

Post by magice » Fri Feb 18, 2011 6:53 pm

Nevermind I got it to work with

Code: Select all

on mouseUp  
launch document "helpfile/helpfile.html"
end mouseUp
so it's all good. :D

Post Reply