Adding Some Dates with Dragon NaturallySpeaking

You can have Dragon into the current date into a document in a variety of formats by creating some scripts.

I like to use a date in this form: yyyymmdd to put in email subject lines or at the beginning of file names. For example, I initially wrote this blog post on 20160916.

I called my command “isodate” and here’s the script (command type is Advanced Scripting).

You can have Dragon into the current date into a document in a variety of formats by creating some scripts.

I like to use a date in this form: yyyymmdd to put in email subject lines or at the beginning of file names. For example, I initially wrote this blog post on 20160916.

I called my command “isodate” and here’s the script (command type is Advanced Scripting).

Sub Main
	n=Now()
	d = DateValue(n)
	s=Format(d,"yyyymmdd")
	SendDragonKeys s
End Sub

Here is a command to send a long date format, which I’ve attached to my Dragon command called “long date”. I wrote this blog post on September 16,2016.

Sub Main
	n=Now()
	d = DateValue(n)
	s=Format(d,"mmmm dd,yyyy")
	SendDragonKeys s
End Sub

The script is very easy to modify, and you can look up the Visual Basic reference material for the format command if you wish a different date format.
Here is a command to send a long date format, which I’ve attached to my Dragon command called “long date”. I wrote this blog post on September 16,2016.

The script is very easy to modify, and you can look up the Visual Basic reference material for the format command if you wish a different date format.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s