Help - Search - Members - Calendar
Full Version: Getting date into macro
VoiceRecognition.com Forum > Voice Recognition Software and Hardware > Dragon NaturallySpeaking & Dragon Medical
pheski
I am trying to make a macro that includes the current date (eg date the document is started) but I don't know how to have Dragon call the appropriate environmental variable.

I would be most interested in this working within Logician, Word or DragonPad.

Thank you.
John Wickett
Here's a sample for WordPad:
COMMAND "Insert Date"
SendKeys "{Alt+i}d{Down 7}{Enter}"

You can customize it for the application you want.

John
pheski
Thank you. I had figured that out (it is also in the documentation) and am using it, but am interested in pushing the envelope some.

Specifically, DragonPad (and Logician) do not have a comparable 'Insert' menu command to activate, so I was wondering about whether this can be done using dll to reach under the hood.

Peter
QUOTE
Originally posted by John Wickett:
Here's a sample for WordPad:
COMMAND \"Insert Date\"
SendKeys \"{Alt+i}d{Down 7}{Enter}\"

You can customize it for the application you want.

John
John Wickett
Peter,

I understand what you want but I would probably just dictate the date.

Here are two macros build by Mitch Miglis and Lunis(AKA KnowBrainer). Mitch's "Today's Date" inserts the date in a different font and format.

Insert Date

AppBringUp "NotePad"
Wait 1000
SendKeys "{F5}{Ctrl+Shift+Left}{Ctrl+x}{Alt+F4}"
Wait 500
SendKeys "{Alt+n}"
Wait 500
SendKeys "{Space}{Ctrl+v}"
'© 1996 - 2001 KnowBrainer®'

////////////////////////////////////////////////////////

Today's Date

AppBringUp "Wordpad"
Wait 750
SendKeys "{Alt+i}d"
Wait 50
SendKeys "{Down 8}{Enter}"
Wait 50
SendKeys "{Ctrl+a}{Ctrl+x}{Alt+F4}"
Wait 50
SendKeys "{Alt+n}"
Wait 50
SendKeys "{Space}{Ctrl+v}"
Wait 500
SendKeys "{Backspace}{Ctrl+Shift+Left 4}"
Wait 100
HeardWord "Set","Font","Times","12"
Wait 100
SendKeys "{Right}"

"Today's Date" and "Insert Date" are the names of the global commands (minus the
quotes) and should be entered into step #5 of #8
Select "script in #6 of #8
Paste the rest of the script into #7 of #8

They both work great. It has been suggested to L&H that an "insert date" feature be added to DNS 6.

Enjoy,

John
LindaOz
I just created a the command "today's date" or whatever you want to call it.

Go to Voc Editor and for written form enter "10/9/01" and for spoken form "today's date".

This just takes a few seconds to change each day but far less hassel than multiple keystrokes to produce a macro.

Linda O.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.