Author Topic: STARTAPP or what?  (Read 2127 times)

0 Members and 1 Guest are viewing this topic.

Fuccaro

  • Guest
STARTAPP or what?
« on: February 06, 2006, 12:26:25 AM »
I use threads frequently so I wrote in a text file the diameters and other usefull data. I created a button to bring that file on my screen using the (STARTAPP "Notepad" "...\\metric.txt") -and it worked.
The next step: I compiled the data in a CHM help file. But now how can I start it?
(startapp WHAT? "metric.chm")
What is the program that runs this file in Windows2000?
Having few buttons for display the most often used pages is faster as browsing in MyHelp.
« Last Edit: February 06, 2006, 12:31:25 AM by Fuccaro »

Jürg Menzi

  • Swamp Rat
  • Posts: 599
  • Oberegg, Switzerland
Re: STARTAPP or what?
« Reply #1 on: February 06, 2006, 02:13:45 AM »
Try this:
Code: [Select]
(startapp "hh.exe" "...YourHelp.chm")
A computer's human touch is its unscrupulousness!
MENZI ENGINEERING GmbH
Current A2k16... A2k24 - Start R2.18

Fuccaro

  • Guest
Re: STARTAPP or what?
« Reply #2 on: February 06, 2006, 05:22:41 AM »
Yes, it works. Thank you!

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: STARTAPP or what?
« Reply #3 on: February 06, 2006, 11:53:41 AM »
You can also use the built-in 'help' function, if I remember correctly.

Quote
(help [helpfile [topic [command]]])
Arguments

helpfile

A string naming the Help file. The file extension is not required with the helpfile argument. If a file extension is provided, AutoCAD looks only for a file with the exact name specified.

If no file extension is provided, AutoCAD looks for helpfile with an extension of .chm. If no file of that name is found, AutoCAD looks for a file with an extension of .hlp.

topic

A string identifying a Help topic ID. If you are calling a topic within a CHM file, provide the file name without the extension; AutoCAD adds an .htm extension.

command

A string that specifies the initial state of the Help window. The command argument is a string used by the uCommand (in HTML Help) or the fuCommand (in WinHelp) argument of the HtmlHelp() and WinHelp() functions as defined in the Microsoft Windows SDK.

For HTML Help files, the command parameter can be HH_ALINK_LOOKUP or HH_DISPLAY_TOPIC. For Windows Help files, the command parameter can be HELP_CONTENTS, HELP_HELPONHELP, or HELP_PARTIALKEY.

Return Values

The helpfile string, if successful; otherwise nil. If you use help without any arguments, it returns an empty string ("") if successful, and nil if it fails.

The only error condition that the help function returns to the application is the existence of the file specified by helpfile. All other error conditions are reported to the user through a dialog box.

Examples

The following code calls help to display the information on MYCOMMAND in the Help file achelp.chm:

(help "achelp.chm" "mycommand")
TheSwamp.org  (serving the CAD community since 2003)