Getting the system's time zone with Dragon Nat

2019-09-10 07:57发布

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

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

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

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

1条回答
老娘就宠你
2楼-- · 2019-09-10 08:27

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

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.

查看更多
登录 后发表回答