Jump to content

Open Help file at a specified topic


Recommended Posts

Hi everybody :)
I searched for code to open directly the AutoIt helpfile at a specified topic.
Here is where I ended, thanks to posts from JLogan3o13 here and Gerry there
Each topic url is found in the help file, at the corresponding page.

Local $s_AutoIt_InstallPath = RegRead('HKLM\SOFTWARE\AutoIt v3\Autoit', 'InstallDir')

If @error Then
    Msgbox(0,"", "error = " & @error & " while reading registry")
Else
    ShellExecute("hh.exe", "mk:@MSITStore:" & $s_AutoIt_InstallPath & "\AutoIt.chm::/html/keywords/comments-start.htm")
EndIf

Please comment if it doesn't work on any Windows installation, thanks.

Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...