Jump to content

Getting the Text from a Help File (.chm)


jbc1
 Share

Recommended Posts

Hi,

I want to be able to get the text inside a compiled help file during my programs execution and add it to a data structure.

For example a window like the one in the attached JPEG.

Is this possible in AutoIT?

Thanks,

jbc1

post-27705-1237805693_thumb.jpg

Edited by jbc1
Link to comment
Share on other sites

  • Moderators

You can use the _IE* functions to interact with a .chm file.

Here's an example of attaching to the AutoIt Help File.

#include <IE.au3>

; Register the IE.au3 Error Handler
_IEErrorHandlerRegister()

; Attach to the helpfile browser window
$oIE = _IEAttach("AutoIt Help", "Embedded")
If Not IsObj($oIE) Then
    MsgBox(48, "Error", "Could not attach to the help file.")
    Exit
EndIf
Link to comment
Share on other sites

You can use the _IE* functions to interact with a .chm file.

Here's an example of attaching to the AutoIt Help File.

#include <IE.au3>

; Register the IE.au3 Error Handler
_IEErrorHandlerRegister()

; Attach to the helpfile browser window
$oIE = _IEAttach("AutoIt Help", "Embedded")
If Not IsObj($oIE) Then
    MsgBox(48, "Error", "Could not attach to the help file.")
    Exit
EndIf
That's excellant.

Thank you!

Regards,

jbc1

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...