I am 99% sure that you can't pause the execution of a macro. DragonDictate
(& presumable D/NS Deluxe) only have a single thread of execution, which is
probably just as well, although occasionally a little disappointing.
The label and GOTO commands are just for the (usually frowned upon)
programming practice of branching within your macro.
You can probably achieve what you want (in DragonDictate...not sure about
D/NS Deluxe) in one of the following two ways:
(1) create a vocabulary group named [am_or_pm] containing the two words
"am" and "pm". Then create a sentence command using this group [My Command
<am_or_pm>]
(2) (harder, but closer to what you asked for) have "[am]" and "[pm]" be
macros which execute the second half of your macro, rather than just plain
words. Then, let your [My Command] macro execute the first half of the
macro, and then do a
ListenFromGroup 1,am_or_pm
Sorry, but neither of these work with keyboard input, unless the Windows
application can read it for you (note that ListenFromGroup will terminate
upon keyboard input, which matches your needs in this case).
Let me know if any of this is unclear.
- Jonathan
At 09:57 AM 6/4/98 -0400, Jim Walsh wrote:
>Can anyone explain the label and GOTO commands?
>
>I want to pause a macro, input data (by voice and/or key strokes) and
>then have the macro pick up where it paused, once I have said one of two
>phrases or press the "a" or "p" keys.
>
>SendKeys "{Ctrl+m}{Alt+r}i{ExtDown}{Tab}m{Alt+d}{Alt+ExtDown}"
>
>This is where I need the pause, data entry, start when I say "AM" or
>"PM"
>
>Now I want the macro to pick up where it was paused...
>
>SendKeys "{Shift+Tab}{Ctrl+c}{Tab}"
>AppBringUp "Netscape"
>SendKeys "{Ctrl+v}{Space}"
>AppReturn
>....etc.
>
>
Jonathan Epstein Jonathan_Epstein@@nih.gov
Unit on Biologic Computation (301)402-4563
Office of the Scientific Director c/o Bldg 10, Room 10D14
Nat. Institute of Child Health and Development 10 Center Drive
National Institutes of Health 20892
![]() |