home *** CD-ROM | disk | FTP | other *** search
/ BUG 12 / BUGCD1998_03.ISO / util / hmpro95 / macprot2.hld < prev    next >
Text File  |  1998-02-11  |  6KB  |  106 lines

  1.  VQPROTOTYPESFILE_04.00 
  2.  
  3. %Display About dialog box; About();
  4. Add Accelerator key; AddAccelerator(key, shift-state, "macro"); AA
  5. Search for alternate keywords; ALink("keywords", type, "context-string", "window-name"); AL
  6. %Display Annotate dialog box; Annotate();
  7. Append menu item on Help Menu ; AppendItem("menu-id", "item-id", "item-name", "macro"); AI
  8. %Return to last topic; Back();
  9. %Remove the back history list; BackFlush(); BF
  10. %Create a Bookmark; BookMarkDefine();
  11. %Display more Bookmark info; BookMarkMore();
  12. Display Browse buttons; BrowseButtons();
  13. Change macro assigned to button; ChangeButtonBinding("button-id", "button-macro"); CBB
  14. Change macro and enable button; ChangeEnable("button-id", "button-macro"); CE
  15. Change macro assigned to menu item; ChangeItemBinding("item-id",  "item-macro"); CIB
  16. Check Help Menu item; CheckItem("item-id"); CI
  17. %Close all but the current secondary window; CloseSecondarys(); CS
  18. Close Help Window; CloseWindow("window-name");
  19. Display help file in second instance of WinHelp; Compare("filename");
  20. %Display Contents; Contents();
  21. Open a control panel applet with a specific tab on top; ControlPanel("CPL-name", "panel-name", tab-num);
  22. %Display Copy dialog box; CopyDialog();
  23. Copy all topic text to Clipboard; CopyTopic(); CT
  24. Add new button to button bar; CreateButton("button-id", "caption", "macro"); CB
  25. Remove menu item; DeleteItem("item-id"); 
  26. Remove text marker; DeleteMark("marker-text");
  27. Remove button; DestroyButton("button-id");
  28. Disable button; DisableButton("button-id"); DB
  29. Disable menu item; DisableItem("item-id"); DI
  30. Enable button; EnableButton("button-id"); EB
  31. Enable menu item; EnableItem("item-id"); EI
  32. %Terminate printing of multiple topics; EndMPrint();
  33. Run a program associated with a file; ExecFile("filename", "arguments", display-state, "context-string"); EF
  34. Execute Windows application; ExecProgram("command-line", display-state); EP
  35. %Exit Help; Exit();
  36. Enable/Disable Menu Item; ExtAbleItem("item-id", enabled-state);
  37. Insert menu item at given position; ExtInsertItem("menu-id", "item-id", "item-name", "macro", position, enabled-state);
  38. Insert sub-menu off of Help menu; ExtInsertMenu("parentmenu-id", "submenu-id", "submenu-name", submenu-position, enabled-state);
  39. Check existence of specified file; FileExist("filename"); FE
  40. %Open another Help file; FileOpen();
  41. %Display the Find tab in Help Topics dialog box; Find();
  42. %Display the Help Topics dialog box; Finder(); FD
  43. %Enable floating menu; FloatingMenu();
  44. %Force WinHelp to process pending messages and macros; Flush(); FH
  45. Change focus to specified window; FocusWindow("window-name");
  46. Post a message to the currently active Help window; Generate("message", "wParam", "lParam");
  47. Go to a text marker; GoToMark("marker-text");
  48. *Animation in extended window; HAnimateCommand("animationfile","control-cmd","windowtitle"); 
  49. *Play Audio file; HAudioCommand("wavfile","control-cmd"); 
  50. *Display Audio Dialog in extended window; HAudioDialog("wavfile","windowtitle"); 
  51. *Display bitmap in extended window; HDisplayBmp("bitmapfile","windowtitle"); 
  52. %Display Help on Windows Help; HelpOn();
  53. %Toggle on-top state of Window Help; HelpOnTop();
  54. %Display History dialog box; History();
  55. Execute macro if text marker exists; IfThen(IsMark("marker-text"), "macro"); IF
  56. Execute one of two macros if text marker exists; IfThenElse(IsMark("marker-text"), "macro1", "macro2"); IE
  57. %Display Printer Setup dialog box; InitMPrint();
  58. Insert menu item at given position; InsertItem("menu-id", "item-id", "item-name", "macro", position);
  59. Insert new menu in Help menu bar; InsertMenu("menu-id", "menu-name", menu-position);
  60. %Is WinHelp running as double-clicked book icon?; IsBook();
  61. Test if text marker exists; IsMark("marker-text");
  62. Test if text marker does not exist; IsNotMark("marker-text"); NM
  63. Jump to Contents topic of a file; JumpContents("filename");
  64. Jump to topic with specified context number; JumpContext("filename", context-number); JC
  65. Jump to a topic identified by a hash number; JumpHash("filename", hash-code); JH
  66. Jump to Context topic of How To Use Help file; JumpHelpOn(); 
  67. Jump to topic with specified context string; JumpId("filename", "context-string"); JI
  68. Search for a topic via its keyword; JumpKeyword("filename", "keyword"); JK
  69. Search for a topic via its keyword; KLink("keyword", type, "context-string", "window-name"); KL
  70. Execute Multimedia command; mciExecute("command-string");
  71. %Display floating menu; Menu(); MU
  72. Print a topic identified by its hash number; MPrintHash(hash-code);
  73. Print a topic; MPrintID("context-string");
  74. %Display next topic; Next();
  75. %Prevent a help window from being displayed; NoShow();
  76. Test if text marker does not exist; Not(IsMark("marker-text"));
  77. Popup topic specified by context number; PopupContext("filename", context-number); PC
  78. Popup topic specified by its hash number; PopupHash("filename", hash-code);
  79. Popup topic specified by context string; PopupId("filename", "context-string"); PI
  80. Set position and size of Help Window; PositionWindow(x, y, width, height, state, "window-name"); PW
  81. %Display previous topic; Prev(); 
  82. %Print the current topic; Print();
  83. %Setup the printer; PrinterSetup();
  84. Register DLL routine as a macro; RegisterRoutine("DLL-name", "function-name", "format-spec"); RR
  85. Remove an accelerator key assignment; RemoveAccelerator(key, shift-state); RA
  86. %Reset Help menus to default; ResetMenu();
  87. Mark location of text; SaveMark("marker-text");
  88. %Search using keywords; Search();
  89. Specify Contents topic; SetContents("filename", context-number);
  90. Replace How To Use Help file; SetHelpOnFile("filename");
  91. Set background color of all popup windows; SetPopupColor(r, g, b); SPC
  92. Open or print specified file; ShellExecute("filename", "arguments", display-state, "operation", "path", "context-string"); SE
  93. Run specified program; ShortCut("window-class", "filename", "wParam", "lParam", "context-string"); SH
  94. Play sound from WAV file; sndPlaySound("filename", play-flag);
  95. Send a message to a program; TCard(command);
  96. Run an internal WinHelp test; Test(test-num);
  97. Test alternate keyword existence; TestALink("keyword");
  98. Test keyword existence; TestKLink("keyword");
  99. Uncheck menu item; UncheckItem("item-id"); UI
  100. Update a help window with a specified topic; UpdateWindow("filename>window-name", "context-string"); UW
  101. User defined macro; User();
  102.  
  103.  
  104.  
  105.  
  106.