本文介绍了使用 Dragon NaturallySpeaking 的高级脚本获取系统的时区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Dragon NaturallySpeaking 的高级脚本显示当前日期和时间:

I want to display the current date and time with Dragon NaturallySpeaking's Advanced Scripting:

我按如下方式显示日期和时间:

I display the date and the time as follows:

Sub Main
    DateToday$ = Format(Now,"yyyy-mm-dd hh:nn:ss")
    SendKeys DateToday$
End Sub

它输出类似2015-01-19 21:45:07"的内容.

It outputs something like "2015-01-19 21:45:07".

我怎样才能写出系统的时区?

How can I write the system's time zone as well?

我使用 Dragon NaturallySpeaking 12.5 Professional 和 Windows 7 SP1 x64 Ultimate.

I use Dragon NaturallySpeaking 12.5 Professional with Windows 7 SP1 x64 Ultimate.

推荐答案

好吧,请在此处查看我的答案:https://stackoverflow.com/a/44507647/5521857

Well, see my answer here: https://stackoverflow.com/a/44507647/5521857

所以,让 Dragon 通过调用另一个脚本来获取它(autohotkey 做到这一点,并在最后使用 shellexecute 和 6 使其最小化)将其复制到剪贴板,然后让 Dragon 将剪贴板分配给一个变量和用它.请记住添加等待,但要确保剪贴板已填充.

So, have Dragon get it by calling another script (autohotkey does it, and use shellexecute with the 6 at the end so it runs minimized) that copies it to the clipboard, and then have Dragon assign the clipboard to a variable and use it. Remember to add a wait, though to make sure the clipboard is populates.

这篇关于使用 Dragon NaturallySpeaking 的高级脚本获取系统的时区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 10:41