This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 16th, 2013  |  syntax: None  |  size: 1.85 KB  |  views: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Unit Help;   //this is where the Id's are set with their description
  2.  Interface
  3.  Const
  4.  
  5. Address_File = 35;  //delphi identifies Address_File as a shortint
  6. etc..
  7.        
  8. GetHelp(Address_File); //call get help pass my ID to open to the Address_File topic
  9.        
  10. procedure GetHelp(HelpID : Word);
  11. begin
  12.   Application.HelpFile := ProgramPath + 'help.chm';
  13.   HtmlHelpW(0, PWideChar(Application.HelpFile),HH_HELP_CONTEXT , HelpID);
  14. end;
  15.        
  16. function HtmlHelpW(hwndCaller : HWND; pszFile: PWideChar; uCommand : Integer;
  17.          dwData : DWORD) : HWND; stdcall; external 'hhctrl.ocx' name 'HtmlHelpW';
  18.        
  19. chmls, a CHM utility. (c) 2010 Free Pascal core.
  20.  
  21. Usage: chmls [switches] [command] [command specific parameters]
  22.  
  23. Switches :
  24.  -h, --help     : this screen
  25.  -p, --no-page  : do not page list output
  26.  -n,--name-only : only show "name" column in list output
  27.  
  28. Where command is one of the following or if omitted, equal to LIST.
  29.  list       <filename> [section number]
  30.             Shows contents of the archive's directory
  31.  extract    <chm filename> <filename to extract> [saveasname]
  32.             Extracts file "filename to get" from archive "filename",
  33.             and, if specified, saves it to [saveasname]
  34.  extractall <chm filename> [directory]
  35.             Extracts all files from archive "filename" to directory
  36.             "directory"
  37.  unblockchm <filespec1> [filespec2] ..
  38.             Mass unblocks (XPsp2+) the relevant CHMs. Multiple files
  39.             and wildcards allowed
  40.  extractalias <chmfilename> [basefilename] [symbolprefix]
  41.             Extracts context info from file "chmfilename"
  42.             to a "basefilename".h and "basefilename".ali,
  43.             using symbols "symbolprefix"contextnr
  44.  extracttoc <chmfilename> [filename]
  45.             Extracts the toc (mainly to check binary TOC)
  46.  extractindex <chmfilename> [filename]
  47.             Extracts the index (mainly to check binary index)
clone this paste RAW Paste Data