Open help topic in an already opened .chm file?

Just starting out? Need help? Post your questions and find answers here.
oO0XX0Oo
User
User
Posts: 78
Joined: Thu Aug 10, 2017 7:35 am

Open help topic in an already opened .chm file?

Post by oO0XX0Oo »

Hello,

is there a way to navigate inside an already opened .chm document
by using @MSITStore links?. Just calling hh.exe doesn't cut it, it will always
open a new window, each time it's called...
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Open help topic in an already opened .chm file?

Post by RSBasic »

Why not with OpenHelp()?

Code: Select all

EnableExplicit

If OpenWindow(0, 0, 0, 500, 400, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  ButtonGadget(1, 10, 10, 200, 20, "Open help site about ''History''", 0)
  ButtonGadget(2, 10, 40, 200, 20, "Open help site about ''OpenWindow''", 0)
  ButtonGadget(3, 10, 70, 200, 20, "Close help site", 0)
  
  Repeat
    Select WaitWindowEvent()
      Case #PB_Event_Gadget
        Select EventGadget()
          Case 1
            OpenHelp(#PB_Compiler_Home + "PureBasic.chm", "MainGuide\history.html")
          Case 2
            OpenHelp(#PB_Compiler_Home + "PureBasic.chm", "Help\OpenHelp.html")
          Case 3
            CloseHelp()
        EndSelect
      Case #PB_Event_CloseWindow
        End
    EndSelect
  ForEver
EndIf
The code opens the help site in the same window. This is not possible with hh.exe or I couldn't find a open-parameter.
Image
Image
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Open help topic in an already opened .chm file?

Post by skywalk »

Thanks RSBasic, never knew this capability built in? 8)
What is the preferred tool to convert txt, html to chm?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Open help topic in an already opened .chm file?

Post by RSBasic »

Microsoft HTML Help Workshop: https://www.microsoft.com/en-us/downloa ... x?id=21138
Or with KEL CHM Creator and Microsoft HTML Help Workshop: https://dumah7.wordpress.com/2009/02/17 ... v-1-4-0-0/

There you can insert the HTML code.
Image
Image
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Open help topic in an already opened .chm file?

Post by skywalk »

Thanks!
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Open help topic in an already opened .chm file?

Post by Kwai chang caine »

Thanks RSBasic, never knew this capability built in?
Thanks RSBASIC me too 8)
This PB...never stop to surprising me :shock:
ImageThe happiness is a road...
Not a destination
Post Reply