home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / HANDICAP / VEDOCS20.ZIP / SECT16.DOC < prev    next >
Encoding:
Text File  |  1991-06-11  |  20.1 KB  |  377 lines

  1. SECTION SIXTEEN
  2. USING A MACRO PROCESSOR WITH VOCAL-EYES
  3.  
  4. 16.1:  INTRODUCTION
  5.  
  6. We've avoided any mention of macros thus far in this, your Vocal-Eyes user's
  7. guide.  As a matter of fact, back in SECTION 1 we actively discouraged you
  8. from using macros with Vocal-Eyes--at least for the time being.  We did this
  9. for the simple reason that we wanted you to see how complete and easy-to-use
  10. Vocal-Eyes' voice features are with absolutely no macro enhancement at all.
  11.  
  12. Now that you've progressed this far, we're sure that you will agree
  13. Vocal-Eyes is without doubt an extremely powerful and easy to use screen
  14. reader.  Anything you want to make talk will talk, easily and at the press of
  15. a single key.  And you even get to choose which key!
  16.  
  17. Macros are not for the beginner.  If you have not worked with macros before,
  18. it is strongly suggested, you wait until you feel completely comfortable with
  19. Vocal-Eyes before tackling the concept of macros.  If you try and learn both
  20. Vocal-Eyes and your macro processor, you're sure to become overwhelmed.  Take
  21. it slow.  We went to great pains to make Vocal-Eyes work as well as it can
  22. without macros.  Of course those of you who feel perfectly at home with
  23. macros can proceed as you wish.  You will find Vocal-Eyes is very hospitable
  24. to many of the well known macro processors including ProKey, Newkey and
  25. Superkey.
  26.  
  27. Of course no matter how well Vocal-Eyes works with an application program,
  28. you may still desire the power of macros.  Perhaps you'd like to integrate
  29. Vocal-Eyes' hot keys or numerous other voice features into entire strings of
  30. applications program commands.  Do you currently own a macro processor? 
  31. Well, you can use any commercially-available macro processor with Vocal-Eyes. 
  32. Indeed, when using macros with Vocal-Eyes, there's really only two things you
  33. need to remember.  The MACRO.COM program and the Macro Toggle hot key.
  34.  
  35. 16.2:  THE MACRO.COM PROGRAM
  36.  
  37. There is a small program file on your Vocal-Eyes master diskette called
  38. MACRO.COM.  You will need to run this program before loading in your macro
  39. processing program files.  If you're using ProKey and the Sounding Board, for
  40. example, your macro processing loading order would be as follows:
  41.  
  42.                          MACRO
  43.                          PKLOAD
  44.                          SBLOAD
  45.                          SB
  46.                          VE
  47.  
  48. If you are using a different macro program, substitute it with the PKLOAD
  49. line.  If you are using a synthesizer other than the Sounding Board,
  50. substitute the appropriate driver for the two lines SBLOAD and SB.  Refer to
  51. Appendix F for a complete list of possible synthesizers and their drivers.
  52.  
  53. MACRO.COM is a simple program with a single function:  it turns off all macro
  54. activity whenever you use your fast review key--ALT, CTRL, SHIFT or
  55. Scroll-Lock--to enter Review Mode.  This is to prevent any macros you may
  56. have in place from interfering with normal Review Mode commands.  You
  57. wouldn't, to take a single example, want your F1 macro to interfere with your
  58. Review help.
  59.  
  60. The MACRO.COM program will only block macro playback if you've used your fast
  61. review hot key to enter Review Mode.  Your second Review Mode hot key, which
  62. you will recall was given a default key assignment of CTRL-ENTER, will not be
  63. affected by the MACRO.COM program.  This is also true if you are using the
  64. Sounding Board hotkeys.  If you enter Review Mode with the fast Review entry
  65. key, you will not be able to use the Sounding Board hot keys.  This is not
  66. true if you use the standard Review Mode hot key.
  67.  
  68. 16.3:  THE MACRO TOGGLE
  69.  
  70. Vocal-Eyes tries very hard not to interfere with your macro playback.  Do you
  71. have a macro that combines a series of program and Vocal-Eyes hot key
  72. commands?  Well, you'll get no complaints from Vocal-Eyes.  Vocal-Eyes will
  73. accept macro generated keystrokes exactly the same as if you'd typed them in
  74. at the keyboard yourself--hot key responses, Review Mode command prompts and
  75. all.
  76.  
  77. As you can imagine, if Vocal-Eyes is to accept your macro generated
  78. keystrokes the same as if you'd typed them in yourself, this is going to lead
  79. to a lot of unnecessary and unwanted chatter at times--especially when your
  80. macro slips into Review Mode, where almost every command includes at least
  81. one voice prompt.  Fortunately, there is an easy way to inform Vocal-Eyes
  82. when to stop and start voicing by means of the macro toggle hot key.
  83.  
  84. The macro toggle hot key is option 60 on your Hot Keys submenu.  Go ahead and
  85. assign an appropriate key to this function.  It's not one you will use often,
  86. so something in a quiet, out-of-the-way corner of your keyboard should
  87. suffice nicely.
  88.  
  89. Use the macro toggle hot key whenever you want to create a macro in which too
  90. much voice response will get in the way. Place it once at the beginning of
  91. your macro to turn all voice response off, then again at the end to turn
  92. voice response back on again.
  93.  
  94. Say, for example, that you have assigned the ALT-F12 key as your macro toggle
  95. hot key.  You want to create a CTRL-0 macro that will make Window 0 the
  96. active window.  Below are two examples of the steps required to perform this
  97. function.
  98.  
  99. Example 1:
  100.  
  101. 1) Press your macro program's begin definition hot key.  (If you're using
  102. ProKey,   this would be ALT-=)
  103. 2) Press CTRL-0.  This is the key you wish the macro assigned to.
  104. 3) Press ALT-F12.  This will toggle Vocal-Eyes' macro voice off.
  105. 4) Press CTRL-ENTER.  This will enter Review Mode.
  106. 5) Press F3.  This will cause Vocal-Eyes to prompt for the window to make
  107. active.
  108. 6) Press 0.  This is the window number you want active.
  109. 7) Press ESCAPE.  This will exit Review Mode.
  110. 8) Press ALT-F12.  This will toggle Vocal-Eyes' macro voice back on.
  111. 9)  Press your macro program's end definition hot key.  (If you're using
  112. ProKey,   this would be ALT--)
  113.  
  114. Example 2:
  115.  
  116. 1) Press your macro program's begin definition hot key.  (If you're using
  117. ProKey,   this would be ALT-=)
  118. 2) Press CTRL-0.  This is the key you wish the macro assigned to.
  119. 3) Press ALT-F12.  This will toggle Vocal-Eyes' macro voice off.
  120. 4) Press your Select Window Hot Key.  This defaults to being undefined.    
  121. Therefore, if you have not already assigned this feature a keystroke, you  
  122. will need to assign it one and press it here.
  123. 5) Press 0.  This is the window number you want active.
  124. 6) Press ALT-F12.  This will toggle Vocal-Eyes' macro voice back on.
  125. 7) Press your macro program's end definition hot key.  (If you're using
  126. ProKey,   this would be ALT--)
  127.  
  128. Notice what we did.  In both examples, we started the macro with a press of
  129. the Macro Toggle hot key.  This is so Vocal-Eyes will not voice all the
  130. normal verbiage it would if we were to execute each keystroke directly from
  131. the keyboard.  We then issued the commands necessary to make window 0 active. 
  132. Finally right before we ended the macro, we once again pressed the Macro
  133. Toggle hot key.  This is so Vocal-Eyes' voice would return to normal
  134. operation.
  135.  
  136. Had we wanted our macro not only to make Window 0 the active window, but also
  137. to voice it for us, we could have placed <F9> directly after the 0 which
  138. selected our window in the first example or pressed the hot key to read
  139. window 0 in either example.  The macro toggle would not have interfered with
  140. the voicing of the window, or any other read hot key we might have placed
  141. within our macro.  The macro toggle hot key is intelligent:  it knows which
  142. voice features we are likely to want suppressed and which we are not.
  143.  
  144. An easy way to remember what will be voiced and what will not is as follows. 
  145. If you press a key and its main function is to read something, Vocal-Eyes
  146. will read it.  Like the read window hot key or read sentence or light bar
  147. etc.  If you enter a command in which its main function is not to speak
  148. something, Vocal-Eyes will not speak anything.  Examples of this would be the
  149. select active window key either in Review or the hot key.  Even pressing the
  150. arrow keys in Review mode will not speak if the macro voice toggle is off.
  151.  
  152. Try creating either of these macros and leave off the two Macro Toggle hot
  153. keys.  Then execute the macro.  We are sure you will appreciate the ability
  154. to shut off unnecessary speech.
  155.  
  156. 16.4:  A FEW THINGS TO REMEMBER
  157.  
  158. Here are a few things you should keep in mind when using a macro processor
  159. with Vocal-Eyes.
  160.  
  161. Whenever you wish to enter Review Mode from within a macro, you MUST enter
  162. using the hot key not the fast review key such as the ALT key.  Remember if
  163. you enter using the ALT key, ProKey is blocked out completely.  If would not
  164. be able to tell you went into Review mode at all.  This of course would cause
  165. your macro not to function correctly.  Therefore, as we just said, always use
  166. the Review Mode hot key.  Also, when you exit Review, use either the ESCAPE
  167. key or the Review Mode hot key again.  Or if you wish to exit and route the
  168. cursor, use the ALT-X or ALT-ESCAPE keys.  In any case, do not exit Review by
  169. pressing the fast review key.
  170.  
  171. WARNING!  Be careful when working inside the Voice Control Panel to avoid
  172. pressing a key with a macro assigned to it.  You may inadvertently "pour"
  173. your macro keystrokes into a submenu, reassigning hot keys all the way down. 
  174. Be sure, when working with the Voice Control Panel, to either use your macro
  175. bypass key or actually go in and suspend macro playback for the duration.
  176.  
  177. In SECTION 9, in our discussion of the Review Mode "F" find command, we
  178. mentioned that you could enter control or extended ASCII characters in the
  179. search string by holding down the ALT key and then using your numeric key
  180. pad.  Macro processors will most likely have to take this one step further,
  181. however, and hold down both the ALT and the LEFT SHIFT keys to accomplish
  182. this task.  This is because of your macro program.  Refer to your macro
  183. program documentation if you have any problems.
  184.  
  185. Also in SECTION 9 we demonstrated how you could use the grave accent (`) key
  186. as a bypass to next key hot key when working within the Voice Control Panel,
  187. in Review Mode or when attempting to enter a ? into the search string.  If
  188. your macro processor also uses this key as a bypass key, you will need to
  189. press it twice, first to bypass your macro processor and then again to invoke
  190. the Vocal-Eyes bypass function.
  191.  
  192. If you wish to look at what your macro program is doing, feel free to enter
  193. Review mode using the ALT key.  For example, in ProKey you can popup its menu
  194. by pressing ALT-/.  However, it does not speak automatically.  If you wish to
  195. read the options, simply enter Review mode and read till your heart's
  196. content.  Then simply exit Review mode.  ProKey will not even realize you
  197. entered Review.  Notice if you popup ProKey for example, you will not be able
  198. to use Vocal-Eyes' hot keys including the Review mode hot key.  This is why
  199. you will have to enter Review by pressing the fast review key.  Then your hot
  200. keys will work as expected.
  201.  
  202. Remember, if you toggle the Macro Toggle off within a macro, you should
  203. toggle it back on before you exit the macro.  If you do not, Vocal-Eyes will
  204. still think a macro is playing back.  This would cause many thing not to be
  205. spoken.  If this is the case, simply press the macro toggle hot key from the
  206. keyboard.  No matter what state the toggle is in, pressing the macro toggle
  207. hot key directly from the keyboard will ALWAYS turn it on.  This means while
  208. creating your macro and you press the macro toggle hot key, Vocal-Eyes will
  209. always turn it on.  Only while the macro is playing back will Vocal-Eyes
  210. toggle it off and on.  This is why Vocal-Eyes still voices normally while you
  211. are creating the macro but silences much of the speech when it is played
  212. back.  Again, the best of both worlds.  It speaks everything while creating
  213. the macro and only what you want when you play it back!
  214.  
  215. Also, if you request a function from within a macro which requires Vocal-Eyes
  216. to load information from the overlay file (VE.OVL),  you need to make sure
  217. DOS will be available.  Normally from within applications programs, DOS will
  218. always be available.  If you feel this will be a problem however, your only
  219. option is to load the overlay file into expanded or extended memory.  Once
  220. loaded in either of these two types of memory, the overlay file will always
  221. be available regardless if DOS is busy or not.
  222.  
  223. Remember the discussion we had about how the Voice Control Panel waits until
  224. DOS is not busy before popping up?  Well, this could cause a problem if a
  225. macro were playing back.  If the Voice Control Panel does not pop up
  226. immediately when it is requested, the next keys in the macro could play back
  227. outside of the menus.  This could cause all sorts of problems.  Because
  228. Vocal-Eyes knows that the Voice Control Panel was requested from a macro
  229. (since the Macro Toggle is off) it pops up the menus immediately.  This is
  230. all well and good except for the fact about DOS.  What if it is busy and you
  231. request to load a .SET file from disk?  Well, you will get the error message
  232. indicating DOS is busy and the function will be aborted.  Therefore, unless
  233. you are absolutely sure DOS will never be busy, you should only load and save
  234. to the RAM locations.  These locations will always be available even if DOS
  235. is busy.
  236.  
  237. Don't forget if you pop up the menus from within a macro, you could be
  238. starting from any of the menus choices.  Therefore, if you wish to move
  239. around the menus, you should always jump to the requested option directly by
  240. pressing its number and pressing ENTER.  This way regardless of where you
  241. currently are, you will end up where you want to be.  Also, if you want to
  242. set a toggle to a known state, you must start by pressing the DELETE key and
  243. then the SPACE BAR or BACKSPACE key to get the option where you want it.  If
  244. you did not start by pressing the DELETE key, you would not know what option
  245. is currently selected and thereby not know how many times to press the SPACE
  246. BAR or BACKSPACE key.
  247.  
  248. 16.5:  THREE EXAMPLES
  249.  
  250. Below are three sample macros that will help give you some idea of how
  251. effectively you can combine program commands and Vocal-Eyes voice features
  252. using macros.  We've been using Word Perfect for many of our examples up till
  253. now, so we'll use it here too.  Keep in mind, however, that since by now you
  254. have undoubtedly changed the key assignments of many of your hot keys, we
  255. cannot hope to make these macros exactly like you would create them.
  256.  
  257. 16.5.1:  BACKING UP YOUR WORK
  258.  
  259. From time to time you will want to back up your Word Perfect text using the
  260. F10 "Document to be saved" command.  If you've used this command you know
  261. that if the file already exists, Word Perfect will verify that you want to
  262. overwrite the file before proceeding.  The process thus entails three
  263. keystrokes:  F10, ENTER and Y to verify.  You could create a macro, ALT-B,
  264. for example, to do it all in one keystroke, but why not add a little voice
  265. prompting while you're at it like this:
  266.  
  267. 1) Press your macro program's begin definition hot key.  (If you're using
  268. ProKey,   this would be ALT-=)
  269. 2) Press ALT-B.  This is the key you wish the macro assigned to.
  270. 3) Press the Macro Toggle hot key.  This will toggle Vocal-Eyes' macro voice
  271. off.
  272. 4) Press F10.  This is Word Perfect's Save key.
  273. 5) Press ENTER.  This will accept the default file name.
  274. 6) Press Y.  This will verify you wish to replace the existing file on disk.
  275. 7) Press the Review Mode hot key.  Remember, this must be the hot key and not
  276.      the fast Review key.
  277. 8) Press C.  This will enter the direct channel feature to your synthesizer.
  278. 9) Type 'READY'.  This will send the characters R, E, A, D and Y to your   
  279. synthesizer causing the word 'ready' to be spoken.
  280. 10) Press ENTER.  This will cancel the direct channel feature.
  281. 11) Press ESCAPE.  This will exit Review Mode.
  282. 12) Press the Macro Toggle hot key.  This will toggle Vocal-Eyes' macro voice
  283.      back on.
  284. 13) Press your macro program's end definition hot key.  (If you're using
  285. ProKey,   this would be ALT--)
  286.  
  287. Now, not only will ALT-B automatically back up your work (assuming, of
  288. course, that you have saved the file at least once previously to give it a
  289. name), but it will also say "READY" when disk activity has been completed and
  290. you're ready to go on.
  291.  
  292. 16.5.2:  THE DOS SHELL
  293.  
  294. In SECTION 12 we introduced you to the concept of the .SET file library.  We
  295. showed you how you could load several .SET files into Vocal-Eyes at the start
  296. of your PC work session, and then use your "Load RAM SET" hot key to switch
  297. back and forth between them.  One of the examples we gave was using the Word
  298. Perfect CTRL-F1 command key to exit to DOS, whereupon we could activate our
  299. DOS RAM3 .SET file and work quite effectively with a full screen "Active"
  300. window and other DOS specific hot keys.  Well, why not automate the process
  301. further with a macro such as the one below?
  302.  
  303. 1) Press your macro program's begin definition hot key.  (If you're using
  304. ProKey,   this would be ALT-=)
  305. 2) Press CTRL-F1.  This is the key you wish the macro assigned to.
  306. 3) Press the Macro Toggle hot key.  This will toggle Vocal-Eyes' macro voice
  307. off.
  308. 4) Press your Load RAM SET hot key.  This will cause Vocal-Eyes to prompt for
  309.      the RAM location to load.
  310. 5) Press 3.  This is assuming you have loaded the DOS.SET file into the third
  311.      RAM location.
  312. 6) Press ` (grave accent).  This is to inform your macro program the next  
  313. keystroke should be sent verbatim.  It should not be interpreted as a macro.
  314. 7) Press CTRL-F1.  This is Word Perfects exit to DOS command.  Notice this
  315. had  to be proceeded with a grave accent.  If it were not, the macro program
  316.      would have started the CTRL-F1 macro over again.  This would cause
  317. an   infinite loop.
  318. 8) Press 1.  This is to verify to Word Perfect we really want to exit to DOS.
  319. 9) Press the Macro Toggle hot key.  This will toggle Vocal-Eyes' macro voice
  320.      back on.
  321. 10) Press your macro program's end definition hot key.  (If you're using
  322. ProKey,   this would be ALT--)
  323.  
  324. Now, whenever you press the CTRL-F1 Word Perfect key your DOS.SET file (which
  325. we are assuming is still in RAM location 3) will be activated and you will
  326. automatically be "shelled" out to DOS with your DOS voice features and hot
  327. keys already there waiting for you.
  328.  
  329. Of course this type of macro really is not required if you have the
  330. autoloading feature enabled which it is by default.  If you shell to DOS,
  331. Vocal-Eyes will automatically load DOS.SET, DOS.KEY and DOS.CHR.  Once you
  332. exit the shell, it will reload what you had loaded before you originally
  333. shelled to DOS.  As you can see, this approach is much easier and more
  334. automatic.
  335.  
  336. 16.5.3:  GETTING BACK
  337.  
  338. Now that you're done working with DOS, you'd like to return to Word Perfect
  339. and reactivate your WP.SET file.  Why not let a macro do it, something like
  340. this:
  341.  
  342. 1) Press your macro program's begin definition hot key.  (If you're using
  343. ProKey,   this would be ALT-=)
  344. 2) Press the key you wish assigned this feature.
  345. 3) Press the Macro Toggle hot key.  This will toggle Vocal-Eyes' macro voice
  346. off.
  347. 4) Press your Load RAM SET hot key.  This will cause Vocal-Eyes to prompt for
  348.      the RAM location to load.
  349. 5) Press 1.  This is assuming you have your WP.SET loaded into RAM1.
  350. 6) Type 'EXIT'.  This is the DOS command which will exit back to Word
  351. Perfect.
  352. 7) Press ENTER.  This will cause DOS to accept the EXIT command.
  353. 8) Press the Macro Toggle hot key.  This will toggle Vocal-Eyes' macro voice
  354.      back on.
  355. 9) Press your macro program's end definition hot key.  (If you're using
  356. ProKey,   this would be ALT--)
  357.  
  358. Pretty simple, don't you think?  But oh how convenient!
  359.  
  360. 16.6:  SUMMARY
  361.  
  362. We started by saying macros should not be attempted by the beginner. 
  363. Vocal-Eyes works very well without macros so it is suggested you start that
  364. way.  Only after you have mastered Vocal-Eyes or already consider yourself
  365. good with macros should you attempt to use them.
  366.  
  367. You were told how to use the MACRO.COM program so Vocal-Eyes can work with
  368. macros.  Next the Macro Toggle hot key was discussed.  It is suggested you
  369. place the keystroke as the very first and very last of each and every macro. 
  370. This will cause Vocal-Eyes to only speak the information you specifically
  371. asked for.
  372.  
  373. We ended this section by giving you a few examples.  If you have any
  374. questions relating to macros, please refer to your macro programs
  375. documentation.
  376.  
  377.