MS Help 2.0 Support

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
egrath
Posts: 14
Joined: Thu Sep 02, 2004 4:48 am
Location: In the Alps of Austria

MS Help 2.0 Support

Post by egrath »

Hello Jussi,

are you planning to incorporate support for MS Help 2.0 Files in the QuickHelp Function?

Visual Studio .NET 2002 and above ship it's Help Files in this format, so i am forced to use the dated old Files vom VC6 (CHM Format) - which are sometimes out of date :(

Bye, Egon
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Hi Egon,

Unfortunately it appears Microsoft will never be making public the MS Help 2.0 file format and this makes it very difficult to add this help file format to the Quick Help feature :(

But it is possible to access the MS Help 2.0 engine using COM and at least for me the following Zeus macro does do a simplified version of the Zeus Quick Help search for MS Help 2.0 files:

Code: Select all

'        Name: MSDN Macro
'
'      Author: Jussi Jumppanen
'
'    Language: VB Script Macro
'
' Description: This VB Script creates a Document Explorer object
'              to search the MSDN for the current word.
'
'  How To Run: All Zeus macros can be run using the macro execute menu
'              item or they can be bound to the keyboard or they can
'              be attached to the macro drop down or popup menus.
'

Dim oMSDN

Function key_macro()
  On Error Resume Next

  ' create the Document Explorer object
  Set oMSDN = CreateObject("DExplore.AppObj.7")

  If Err.Number = 0 Then
    ' this macro only works for documents
    is_document = zeus.is_document()

    If is_document = 1 Then
      ' get the current word or the marked text
      word = zeus.macro_tag("$WEX")

      ' make sure we have a word
      If Len(word) > 0 Then

        ' set the MSDN collection
        oMSDN.SetCollection "ms-help://MS.VSCC", ""

        ' display the index panel
        oMSDN.Index

        ' search for the current word
        oMSDN.DisplayTopicFromKeyword word

      Else
        ' give some feedback to the user
        zeus.message "Place the cursor on word or mark some text."
      End If

    Else
      ' give some feedback to the user
      zeus.message "This script requires an opne document or output window."
    End If

  Else
    ' Document Explorer not supported
    error_message = "The .NET Framework Document Explorer does not appear to be installed on this machine."

    ' display error message in the status bar
    zeus.message error_message

    MsgBox error_message
  End If

End Function

key_macro() 'run the macro
Cheers Jussi
egrath
Posts: 14
Joined: Thu Sep 02, 2004 4:48 am
Location: In the Alps of Austria

Post by egrath »

Hi Jussi,

thank you for the Script you've attached i will try it this evening :)

Bye, Egon
Post Reply