Getting the system's time zone with Dragon NaturallySpeaking's Advanced Scripting

纵然是瞬间 提交于 2019-12-11 10:39:03

问题


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:


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.



来源:https://stackoverflow.com/questions/28036934/getting-the-systems-time-zone-with-dragon-naturallyspeakings-advanced-scriptin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!