Author Topic: Setfunhelp: call a HTML in standard browser?  (Read 139 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 536
Setfunhelp: call a HTML in standard browser?
« on: March 25, 2019, 08:25:32 AM »
I have these code-lines, taken from online-line:

Code - Auto/Visual Lisp: [Select]
  1. (defun c:test()
  2.     (getstring "Press F1 for help on the test command:")
  3. )
  4. (setfunhelp "c:test" "d:/temp.html")

Works (nearly) as expected, but it calls the "AutoCAD Browser" to display the HTML instead of my standard browser. I accept that this is a feature and not a bug, but nevertheless - due to compatibility and functionality reasons - I would prefer that the "standard browser" is invoked.

Any simple ways to get it (to avoid startapp and sub-routines and ...) ???
Peter

AutoCAD Map 3D 2018 German (so some technical terms will be badly retranslated to English)
BricsCAD V18

mkweaver

  • Bull Frog
  • Posts: 339
Re: Setfunhelp: call a HTML in standard browser?
« Reply #1 on: April 15, 2019, 03:04:30 PM »
Try this:
Code - Auto/Visual Lisp: [Select]
  1.     (setq
  2.       objShell (vla-getinterfaceobject(vlax-get-acad-object) "wscript.shell")
  3.       Run (vlax-invoke objShell 'RUN FileName 5)
  4.       )
  5.     (vlax-release-object objShell)

With FileName set to your html file