Gerry Posted May 6, 2010 Share Posted May 6, 2010 Hi All I have created a CHM file for my application. I open the CHM file with this line: ShellExecute(@ScripDir & "\Help.chm") I would ideally like to jump to a specific topic in the Help file, much like the context sensitive ehlp we AutoIt uses in its help file from the Scite editor. Can anyone please shed some light on how to do this please? Gerry Link to comment Share on other sites More sharing options...
99ojo Posted May 6, 2010 Share Posted May 6, 2010 Hi, an example for AutoIT help: ShellExecute ("hh.exe", "mk:@MSITStore:C:\Programme\AutoIt3\AutoIt3.chm::/html/credits.htm") You might have to change Programme to Program Files. Then try: ShellExecute ("hh.exe", "mk:@MSITStore:C:\Program Files\AutoIt3\AutoIt3.chm::/html/credits.htm") or ShellExecute ("hh.exe", "mk:@MSITStore:'C:\Program Files\AutoIt3\AutoIt3.chm'::/html/credits.htm") ;-)) Stefan Link to comment Share on other sites More sharing options...
Gerry Posted May 6, 2010 Author Share Posted May 6, 2010 Thanks Stefan! I didn't suspect it would be that easy! ) Gerry Link to comment Share on other sites More sharing options...
Gerry Posted May 6, 2010 Author Share Posted May 6, 2010 Stefan, sorry to bug you again I tried your line and it works fine on the AutoIt CHM, I decompiled it and saw how the CHM was assembled and I can select different html files items in various folders. ShellExecute ("hh.exe", "mk:@MSITStore:C:\Program Files\AutoIt3\AutoIt3.chm::/html/faq.htm") Works like a charm. Problem is when I do my rotten CHM file, it opens the file but says "The page cannot be dispayed" Any ideas? Gerry Link to comment Share on other sites More sharing options...
therks Posted May 6, 2010 Share Posted May 6, 2010 Try this Gerry, open up your CHM the normal way, navigate to the page you'd like to link to, and then right click in the background of the frame and choose Properties. That should give you the full address of the page you're looking for, maybe yours is formatted differently than the AutoIt one so it's not working the same. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Gerry Posted May 6, 2010 Author Share Posted May 6, 2010 Hi Stefan Thanks, I did as you said and it worked first time! I really appreciate your help. Gerry Link to comment Share on other sites More sharing options...
99ojo Posted May 6, 2010 Share Posted May 6, 2010 Hi, that wasn't me, but @therks..... ;-)) Stefan Link to comment Share on other sites More sharing options...
Dana Posted December 30, 2010 Share Posted December 30, 2010 I know this is an old topic, but thanks for the info. Even simpler: ShellExecute("hh.exe", ".\help.chm::/helptopic.html") This avoids the problems from having a hard coded path in the command line; it works as long as the chm file is in the same directory as the program. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now