Sign in to follow this  
Followers 0
craigholohan

Opening a .chm file

16 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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

It is opening with Microsoft HTML Help, my properties look the same as your attachement except for the name.

Share this post


Link to post
Share on other sites

It is opening with Microsoft HTML Help, my properties look the same as your attachement except for the name.

which should be hh.exe


SciTE for AutoItDirections for Submitting Standard UDFs

 

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

 

Share this post


Link to post
Share on other sites

which should be hh.exe

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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.

 

Share this post


Link to post
Share on other sites

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")
Thanks gafrost,

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

Craig

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

or you could just shellexecute it...

ShellExecute ("QuickNICHelp.chm")

........right?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

or you could just shellexecute it...

ShellExecute ("QuickNICHelp.chm")

........right?

will this also open on a specific page ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

will this also open on a specific page ?

:"> nope

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
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.

 

Share this post


Link to post
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 !

Share this post


Link to post
Share on other sites

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.

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Jos a répondu a ta question.

Jos as he is reading french answer your question.

Thanks for using AutoIt

Thank you both for your answer

for jpm :

During the day, better open the shutters than ligth a candle ;)

Share this post


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
Sign in to follow this  
Followers 0