Speech recognition 是否有使用Dragon自然语言软件单击浏览按钮的命令?

Speech recognition 是否有使用Dragon自然语言软件单击浏览按钮的命令?,speech-recognition,naturallyspeaking,Speech Recognition,Naturallyspeaking,我对Dragon自然语言软件非常陌生。我主要把它用于web应用程序。我可以导航到所有按钮和其他元素,但不能浏览用于上传文件的“浏览”按钮。 我尝试添加属性alt、title和name,但dragon无法识别它。 是否有特定的命令来单击上载按钮?还是创建自定义命令?如果您的浏览器是Microsoft Internet Explorer,并且您知道“浏览”按钮的ID,则此代码应为您单击它: Sub Main Dim wb As Object ' prepare a web browser

我对Dragon自然语言软件非常陌生。我主要把它用于web应用程序。我可以导航到所有按钮和其他元素,但不能浏览用于上传文件的“浏览”按钮。 我尝试添加属性alt、title和name,但dragon无法识别它。


是否有特定的命令来单击上载按钮?还是创建自定义命令?

如果您的浏览器是Microsoft Internet Explorer,并且您知道“浏览”按钮的ID,则此代码应为您单击它:

Sub Main 
   Dim wb As Object '  prepare a web browser object 
   Set wb = CreateObject("Shell.Application").Windows.Item(0) '  set the wb object to the active window, namely Item(0) 
   wb.Visible = True '  wb must be visible to the code for it to act 
   wb.Document.getElementByID("the_exact_ID_name_of_the_element").click() '  the element ID can also be passed in as a variable 
   Set wb = Nothing
End Sub
如果没有元素ID,可以按索引、类或控件类型等选择项