home *** CD-ROM | disk | FTP | other *** search
/ TestDrive Super Store 2.3 / TESTDRIVE_2.ISO / wpwin60 / readme.mcr < prev    next >
Encoding:
Text File  |  1993-10-01  |  7.3 KB  |  278 lines

  1. =================================================================
  2. README.MCR                                                         10/01/93
  3. =================================================================
  4.  
  5. This README file contains a list and brief description of the
  6. predefined macros that are included with WordPerfect 6.0 for
  7. Windows. This file also contains information regarding macro
  8. commands that were not included in the online macros manual.
  9.  
  10. Included in the following information.
  11.  
  12. 1    Macros Included with WordPerfect 6.0 for Windows
  13. 2    SendKeys Information
  14. 3    SYSTEM VARIABLES - ?LeftCode and ?RightCode
  15.  
  16. MACROS
  17. ======
  18. ABBREV.WCM
  19. Lets you create and expand multiple abbreviations.
  20.  
  21. ADRS2MRG.WCM
  22. Copies the address book (for automated templates) into a merge
  23. data file.
  24.  
  25. ADRSBOOK.WCM
  26. Allows manipulation of the address book.
  27.  
  28. ALLFONTS.WCM
  29. Creates a document listing the every font available to the
  30. current printer and some sample text in each font.
  31.  
  32. AUTOFILL.WCM
  33. Used by the ExpressDocs Templates to automate the template
  34. fill-in process.
  35.  
  36. CAPITAL.WCM
  37. Capitalizes the first letter of the current word.
  38.  
  39. CLIPBRD.WCM
  40. Opens the Windows Clipboard.
  41.  
  42. CLOSEALL.WCM
  43. Closes all open documents and prompts you to save the modified
  44. ones.
  45.  
  46. CTRLSFTF.WCM
  47. For Equation Editor - prompts for FROM and TO values.
  48.  
  49. DROPCAP.WCM
  50. Changes the first letter in a paragraph to a drop cap.
  51.  
  52. ENDFOOT.WCM
  53. Converts endnotes to footnotes in document or selected text.
  54.  
  55. EXPNDALL.WCM
  56. Expands all abbreviations in the document in one step.
  57.  
  58. FILESTMP.WCM
  59. Places the filename and path of the current document in a header
  60. or footer.
  61.  
  62. FONTDN.WCM
  63. Decreases the font size of the selected text by 2 points.
  64.  
  65. FONTUP.WCM
  66. Increases the font size of the selected text by 2 points.
  67.  
  68. FOOTEND.WCM
  69. Converts footnotes to endnotes in document or selected text.
  70.  
  71. GOTODOS.WCM
  72. Opens a DOS window.
  73.  
  74. LINENUM.WCM
  75. Places the insertion point at a specified line and character for
  76. debugging macros.
  77.  
  78. PAGEXOFY.WCM
  79. Places "Page x of y pages" (or other pagination formats) in a
  80. specified position on the page.
  81.  
  82. PARABRK.WCM
  83. Inserts graphical paragraph breaks between paragraphs.
  84.  
  85. PGBORDER.WCM
  86. Uses graphics (.WPG files) to create decorative page borders.
  87.  
  88. PROMPTS.WCM
  89. Helps you create prompts for automated templates.
  90.  
  91. READCLP.WCM
  92. Reads text in the clipboard.  Requires ProVoice or Monologue text
  93. to speech software.
  94.  
  95. READFILE.WCM
  96. Reads a text file or plays a .WAV, .AVI or .MID file.  Requires
  97. ProVoice or Monologue text to speech software.
  98.  
  99. READSEL.WCM
  100. Reads text selected in the document.  Requires ProVoice or
  101. Monologue text to speech software.
  102.  
  103. REVERSE.WCM
  104. Creates white text on black background (or other color options as
  105. set by the user) in document text or tables.
  106.  
  107. SAVEALL.WCM
  108. Saves all documents open documents and prompts you to save
  109. modified ones.
  110.  
  111. SQCONFIG.WCM
  112. Configures the Smart Quotes utility.
  113.  
  114. SQTOGGLE.WCM
  115. Turns on and off the Smart Quotes utility.
  116.  
  117. TRANSPOS.WCM
  118. Transposes the two characters preceding the insertion point.
  119.  
  120. WATERMRK.WCM
  121. Prompts for text or watermark graphic that will be placed in
  122. watermark (centered vertically and horizontally).
  123.  
  124. SENDKEYS
  125. ========
  126. SENDKEYS allows the user to send key codes to the active window. 
  127. This allows users to create keystroke macros.  
  128.  
  129. syntax
  130. SENDKEYS WAIT (KeyCode; MarkupLanguage)
  131.  
  132. parameters
  133. KeyCode(Character Expression)
  134.  
  135. You now have a choice of languages to use for this parameter. 
  136. The MarkUp Language is the same language used in the WPWin
  137. 5.1/5.2 commands (See the Documentation in Macro Help for
  138. SendKeys).  The Keystring language has been added for WPWin 6.0
  139. (See Keystring Language below).
  140.  
  141.  
  142. KEYSTRING LANGUAGE
  143. The following meta-symbols can be used to specify a key or
  144. keystring.
  145.  
  146. {VKnnn}             nnn = ANSI character number
  147.  
  148. {Alt}
  149. {Ctrl}
  150. {Control}
  151. {Shift}
  152.  
  153. {0} - {9}           Digits
  154. {A} - {Z}           Alphabet
  155. {F1} - {F16}        Function keys
  156.  
  157. {NumLock}
  158. {NumAdd}
  159. {NumSubtract}
  160. {NumMultiply}
  161. {NumDivide}
  162. {NumDecimal}
  163. {Num0} - {Num9}     Numpad numbers
  164.  
  165. {Left}
  166. {Right}
  167. {Up}
  168. {Dn}
  169. {Down}
  170.  
  171. {PgDn}
  172. {PageDown}
  173. {PgUp}
  174. {PageUp}
  175.  
  176. {Bksp}
  177. {Backspace}
  178. {Break}             Cancel
  179. {CapsLock}
  180. {Clear}
  181. {Del}
  182. {Delete}
  183. {End}
  184. {Enter}
  185. {Esc}
  186. {Escape}
  187. {Help}              VK Help key
  188. {Home}
  189. {Ins}
  190. {Insert}
  191. {Minus}
  192. {Pause}
  193. {ScrLock}
  194. {ScrollLock}
  195. {PrintScrn}
  196. {PrintScreen}
  197. {Space}
  198. {Tab}
  199.  
  200. {LeftBrace}         "{"
  201. {RightBrace}        "}"
  202.  
  203.  
  204. The meta-symbols are translated into a keydown message
  205. (WM_KEYDOWN or WM_SYSKEYDOWN) and a keyup message (WM_KEYUP or
  206. WM_SYSKEYUP).
  207.  
  208. The meta-symbols are not case-sensitive.  Spaces or other defined
  209. symbols ('+' and '-') are delimiters.  For example, the keystring
  210. "A B C Enter" would cause "ABC[Enter]" to be sent to the
  211. application.
  212.  
  213. The plus (+) and minus (-) characters can be used to combine
  214. metasymbols.  The '+' causes the preceding meta-symbol to defer
  215. its keyup message until the following meta-symbol has processed
  216. its keyup message.  For example, the keystring {Shift + Tab}
  217. would cause the Shift key to be pressed and held while Tab was
  218. pressed and released.  The Shift key would then be released.
  219.  
  220.  
  221. If a meta-symbol does not follow a '+' character, then all keys
  222. that were previously combined with the "+' character are left in
  223. the down state until released.  For example, {Shift+Control+}
  224. would cause both the Shift and Control keys to be left in a down
  225. state.
  226.  
  227. Keys can be released (have their keyup message immediately
  228. processed) by using the '-' character.  For example, the
  229. keystring "-Control-Shift" would cause the Control key to be
  230. released, followed by a release of the Shift key.
  231.  
  232. The '+' and '-' keys can be combined.  For example, the keystring
  233. {Shift+Del- Del+Ins} would cause the selected text to be cut to
  234. the Clipboard (Shift+Del) and then pasted at the insertion point
  235. (Shift+Ins).
  236.  
  237. An example of SENDKEYS using the Keystring Language
  238.  
  239. This example will open the Open File Dialog box and list files
  240. with the extension .DOC.
  241.  
  242. Application (A1;"WordPerfect"; Default;  "US")
  243. InhibitInput(Off!)
  244. SENDKEYS("{Alt+F}{O}*.DOC{Enter}";1)
  245.  
  246. This example will open the Windows Clipboard, remove the
  247. contents, and close.
  248.  
  249. Application (A1;"WordPerfect"; Default;  "US")
  250. APPEXECUTE("C:\Windows\Clipbrd.exe")
  251. SENDKEYS WAIT("{Alt+E}{D}Y";1)
  252. SENDKEYS WAIT("{Ctrl+Esc}{Alt+E}";1)
  253.  
  254. MarkupLanguage (Numeric Expression) (optional)
  255. Specifies which Markup Language is used to interpret the key
  256. codes.  If this parameter is not specified, the language defaults
  257. to 1.
  258.  
  259. 0    5.1/5.2 MarkUp Language
  260. 1    6.0 KeyString Language
  261.  
  262. SYSTEM VARIABLES - ?LeftCode and ?RightCode
  263. ===========================================
  264. The values for ?LeftCode and ?RightCode do not match those of
  265. WordPerfect 6.0 for DOS (WP60DOS).  This will be changed in a
  266. future release of WordPerfect 6.0 for Windows (WPWin60).  Until
  267. then, if you have a WP60DOS macro which uses ?LeftCode or
  268. ?RightCode, you will need to manually change the values in the
  269. macro in order for it to play correctly in WPWin60.
  270.  
  271. Also, in order to find the correct values for ?LeftCode and
  272. ?RightCode, we suggest you use the Type command in a macro.  For
  273. example, the following macro types the value of a code
  274. immediately to the left of the insertion point: 
  275.  
  276. Application (A1; "WordPerfect"; Default; "US")
  277. Type (?LeftCode)
  278.