Jump to content

Opening a .chm file


Recommended Posts

Sorry for this silly question but I cant seem to get it to open, I created a help file with a .chm extension. In my top menu I have:

$helpmenu = GUICtrlCreateMenu ("Help")

$helpitem = GUICtrlCreateMenuitem ("Quick NIC Help",$helpmenu)

GUICtrlSetOnEvent ($helpitem, "_HelpFile")

Then the event I have tried:

Func _HelpFile()

Run("QuickNICHelp.chm",@ScriptDir)

EndFunc

I tried the _RunDOS, FileOpen etc. but still no success.

Please tell me where I am going wrong.

Thanks,

Craig

Link to comment
Share on other sites

Sorry for this silly question but I cant seem to get it to open, I created a help file with a .chm extension. In my top menu I have:

$helpmenu = GUICtrlCreateMenu ("Help")

$helpitem = GUICtrlCreateMenuitem ("Quick NIC Help",$helpmenu)

GUICtrlSetOnEvent ($helpitem, "_HelpFile")

Then the event I have tried:

Func _HelpFile()

Run("QuickNICHelp.chm",@ScriptDir)

EndFunc

I tried the _RunDOS, FileOpen etc. but still no success.

Please tell me where I am going wrong.

Thanks,

Craig

Check which program is opening a .chm (property of the file° it should display the attached file
Link to comment
Share on other sites

Ok now I am even more confused, what do you mean hh.exe and how do I get it to hh.exe?

for example if you were running the codewizard in it's folder the following would bring up the topic for msgbox

Run(@WindowsDir & "\HH.exe " & @ScriptDir & "\CodeWizard.chm::msgbox.html")
Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Thanks gafrost,

It seems so easy when you know what you are doing ;)

Craig

I didn't till a few minutes ago, had to google for hh.exe and find the commands for it

I'll break it down for you

hh path/file.chm::/path/file.html or htm

therefore

Run(@WindowsDir & "\HH.exe " & @ScriptDir & "\CodeWizard.chm::msgbox.html")

the path to msgbox.html in this case is in the root of the help file some may have a path you have to put in.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • Developers

or you could just shellexecute it...

ShellExecute ("QuickNICHelp.chm")

........right?

will this also open on a specific page ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

:"> nope

here's an example of using the AutoIt3.chm

$sAutoItPath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir")

Run(@WindowsDir & "\HH.exe " & $sAutoItPath & "\AutoIt3.chm::/html/functions/GUICtrlCreateUpdown.htm")

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Check which program is opening a .chm (property of the file° it should display the attached file

jpm,

Comment as-tu fait pour faire la miniature dans ton post?

Sinon je vois que tu es un des pionnier du forum. Bravo !

How did you realise the little picture in your Post?

Are you one of the AutoIt Forum parents? thx !

Link to comment
Share on other sites

  • Developers

How did you realise the little picture in your Post?

Are you one of the AutoIt Forum parents? thx !

Attach a Picture to the post and then click the "Add into Post" button after attaching it.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

jpm,

Comment as-tu fait pour faire la miniature dans ton post?

Sinon je vois que tu es un des pionnier du forum. Bravo !

How did you realise the little picture in your Post?

Are you one of the AutoIt Forum parents? thx !

Jos a répondu a ta question.

Jos as he is reading french answer your question.

Thanks for using AutoIt

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...