craigholohan Posted November 18, 2006 Share Posted November 18, 2006 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 More sharing options...
jpm Posted November 18, 2006 Share Posted November 18, 2006 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)EndFuncI tried the _RunDOS, FileOpen etc. but still no success.Please tell me where I am going wrong.Thanks,CraigCheck which program is opening a .chm (property of the file° it should display the attached file Link to comment Share on other sites More sharing options...
craigholohan Posted November 18, 2006 Author Share Posted November 18, 2006 Check which program is opening a .chm (property of the file° it should display the attached fileIt is opening with Microsoft HTML Help, my properties look the same as your attachement except for the name. Link to comment Share on other sites More sharing options...
GaryFrost Posted November 18, 2006 Share Posted November 18, 2006 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. Link to comment Share on other sites More sharing options...
craigholohan Posted November 18, 2006 Author Share Posted November 18, 2006 which should be hh.exeOk now I am even more confused, what do you mean hh.exe and how do I get it to hh.exe? Link to comment Share on other sites More sharing options...
GaryFrost Posted November 18, 2006 Share Posted November 18, 2006 (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 November 18, 2006 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 More sharing options...
craigholohan Posted November 18, 2006 Author Share Posted November 18, 2006 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted November 18, 2006 Share Posted November 18, 2006 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 More sharing options...
theguy0000 Posted November 18, 2006 Share Posted November 18, 2006 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted November 18, 2006 Developers Share Posted November 18, 2006 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 More sharing options...
theguy0000 Posted November 18, 2006 Share Posted November 18, 2006 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted November 18, 2006 Share Posted November 18, 2006 :"> 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 More sharing options...
tresa Posted November 18, 2006 Share Posted November 18, 2006 Check which program is opening a .chm (property of the file° it should display the attached filejpm,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 More sharing options...
Developers Jos Posted November 18, 2006 Developers Share Posted November 18, 2006 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 More sharing options...
jpm Posted November 18, 2006 Share Posted November 18, 2006 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 More sharing options...
tresa Posted November 19, 2006 Share Posted November 19, 2006 Jos a répondu a ta question.Jos as he is reading french answer your question.Thanks for using AutoItThank you both for your answerfor jpm :During the day, better open the shutters than ligth a candle Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now