LOULOU Posted April 6, 2006 Posted April 6, 2006 I want ot make a context help with a chm file and KeyHH.exe. Example I am in programm n° 3 and i want ot acess directly in my chm to the help of this third programm . How can I do to invoke inside the program this help directly. Thanks for any help
Lazycat Posted April 6, 2006 Posted April 6, 2006 Very simple, you just have to know internal html file names and paths. Example below open "credits" page in the Autoit.chm file. $help_path = RegRead("HKLM\SOFTWARE\AutoIt v3\Autoit", "InstallDir") & "AutoIt.chm" $topic_path = "html\credits.htm" $URL = $help_path & "::" & $topic_path Run("hh.exe " & $URL) Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
forger Posted April 6, 2006 Posted April 6, 2006 $help_path = RegRead("HKLM\SOFTWARE\AutoIt v3\Autoit", "InstallDir") & "\AutoIt.chm" $topic_path = "html\credits.htm" $URL = $help_path & "::" & $topic_path Run("hh.exe " & $URL) Lazycat forgot the \ before the file AutoIt.chm
Lazycat Posted April 7, 2006 Posted April 7, 2006 Lazycat forgot the \ before the file AutoIt.chmIn my registry InstallDir key already contain trail slash. In your not? Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
GEOSoft Posted April 7, 2006 Posted April 7, 2006 (edited) In my registry InstallDir key already contain trail slash. In your not?I always solve that problem by using an extra line of code$help_path = RegRead("HKLM\SOFTWARE\AutoIt v3\Autoit", "InstallDir")If StringRight($help_path,1) <> '\' Then $help_path = $help_path & '\'$help_path = 'helpfile.chm' Edited April 7, 2006 by GEOSoft George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
Gene Posted April 7, 2006 Posted April 7, 2006 (edited) I want ot make a context help with a chm file and KeyHH.exe. Example I am in programm n° 3 and i want ot acess directly in my chm to the help of this third programm . How can I do to invoke inside the program this help directly. Thanks for any help I didn't ask anyone when I added a help file several months ago, so I came up with a slightly different method. I wrote these UDFs Func SL_GeneralHelp() $sHelp = "F1" $sHelpFilePathName = FileGetShortName(@ScriptDir & "\StopLightTimer.chm") If @error = 1 Then MsgBox(0, "Information", "FileGetShortName() failed ") If $sHelpCommand = "" Then $sHelpTopic = '"Overview"' _SetHelpTopic() EndIf $sCmdLine = @ComSpec & " /c " & "start " & $sHelpCommand $sFlag = @SW_MINIMIZE Run($sCmdLine, "", $sFlag) Return EndFunc;==>SL_GeneralHelp Func _SetHelpTopic() $sScrptDir = FileGetShortName(@ScriptDir) $sKeyHH = $sScrptDir & "\KeyHH.EXE -MyHelp -#klink " $sHelpFile = $sScrptDir & "\stoplighttimer.chm" $sHelpCommand = $sKeyHH & $sHelpTopic & " " & $sHelpFile EndFunc;==>_SetHelpTopic Before any code in the script I inserted these calls. $sHelpTopic = '"Overview"' _SetHelpTopic() HotKeySet("{F1}", "SL_GeneralHelp") I don't have a help button as such, but in every case statement that is related to a Control or a Tab the following code is embedded. $sHelpTopic = '"URL for the current control or tab"' _SetHelpTopic() So that when the user presses the F1 key at nearly any point in the script the user gets help for the last thing that was selected. It amounts to context sensitive help. I'm sure someone will come up with a more elegant method, but this works very well. Gene Edited typo Edited April 7, 2006 by Gene [font="Verdana"]Thanks for the response.Gene[/font]Yes, I know the punctuation is not right...
MHz Posted April 7, 2006 Posted April 7, 2006 (edited) A hacked up UDF for show, but shows how to open at a particular page by window title. Func _Helpfile($path_chm = 'Help.chm', $path_html = '') If Not $path_chm Then $path_chm = 'Help.chm' Select Case WinGetTitle('') = 'IndexName ?' $path_html = 'PageName.html' EndSelect If FileExists($path_chm) Then Run('hh.exe ms-its:' & $path_chm & '::/' & $path_html) Else MsgBox(0x40010, '', 'Files missing for launching the Help Guide') EndIf EndFunc Edited April 7, 2006 by MHz
forger Posted April 7, 2006 Posted April 7, 2006 In my registry InstallDir key already contain trail slash. In your not?Nope :">
forger Posted April 7, 2006 Posted April 7, 2006 I always solve that problem by using an extra line of code$help_path = RegRead("HKLM\SOFTWARE\AutoIt v3\Autoit", "InstallDir")If StringRight($help_path,1) <> '\' Then $help_path = $help_path & '\'$help_path = 'helpfile.chm'You don't need that check, I just tried, mine's a win-win solution:P
GEOSoft Posted April 7, 2006 Posted April 7, 2006 You don't need that check, I just tried, mine's a win-win solution:PIn this case it is.Another method that I have in my snippets is $A = RegRead(key,path) & '\<filename>If stringInStr($A,'\\') > 0 then $A = StringReplace($A,'\\','\') George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
forger Posted April 7, 2006 Posted April 7, 2006 Well, it works on Windows XP Pro SP2 without that check. Even file commands like FileCopy command work.
MilesAhead Posted November 11, 2011 Posted November 11, 2011 Seems like KeyHH.exe has been lost, abandoned or whatever. Any site I find that has a download link it just hangs or redirects me to some system cleaner snake-oil download. My Freeware Page
BrewManNH Posted November 11, 2011 Posted November 11, 2011 Seems like KeyHH.exe has been lost, abandoned or whatever. Any site I find that has a download link it just hangs or redirects me to some system cleaner snake-oil download.Even though you're responding in a 5 1/2 year old thread, I thought I'd let you know. If you're looking for the file keyhh.exe you can find it in the portable download version of the RJ Text editor http://www.rj-texted.se/download.htm check that page for the download. it's also included in the installer version, but if all you really need is the keyhh program, the portable zip file is easier. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
MilesAhead Posted November 11, 2011 Posted November 11, 2011 Thanks for the reply. On another board someone found the download in a web archive. In case anyone else is looking, this has the 3 Keyworks tools:http://web.archive.org/web/20110106120642/http://keyworks.net/ My Freeware Page
Helpware Posted September 26, 2013 Posted September 26, 2013 The original KeyWorks site was accidentally allowed to expire. Ralph has permitted us to host it here http://keyworks.helpmvp.com/ Rob
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