Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Calling .CHM help with a specific topic

1 REPLY 1
Reply
Message 1 of 2
TInloes
279 Views, 1 Reply

Calling .CHM help with a specific topic

I am trying to call help with a specific topic.

In the past I used .HLP files and used this method:

(setq helpfilename "myhelpfile.HLP")

(setq helptarget "Menus")

(help helpfilename helptarget)

 

I am now using .CHM help files and I want to accomplish the same thing - open a specific help file to a specific topic.  The old method no does not work with the .CHM file.  I have added an alias for each topic and have tried calling with the Topic ID, the Alias and the Help Context Number (in decimal and hex).  So far nothing I have tried works.

 

Does anyone know how to accomplish this using Lisp.

 

Thanks

1 REPLY 1
Message 2 of 2
kdub_nz
in reply to: TInloes

One option

;; Courtesy of MP@theSwamp 
;; http://www.theswamp.org/index.php?topic=5176.msg62866#msg62866 (defun ActiveXHelp ( topic ) (startapp "hh.exe" (strcat (findfile "acadauto.chm") "::/idh_" topic ".htm" ) ) (princ) ) (ActiveXHelp "HasAttributes")

 

Another option is to look at setfunhelp

 

(defun c:fooTest ()
  (getstring "Press F1 for help on the fooTest:var1 command:")
)
(setfunhelp "c:fooTest" "myHelp.chm" "var1")

 


// Called Kerry in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost