此页面中出现了一些不正确的信息,因此请做一些工作来正确引导人们在这里正确地引导人们,然后为 OP 的问题提供解决方案;
自 v6.4 起,SendKeys 仅由以下属性使用
UI 元素:
Button (UIA) elements
Check Box (UIA) elements
Radio Button (UIA) elements
Combo Box (UIA) elements
Edit Box (UIA) elements
Menu (UIA) elements
Menu Item (UIA) elements
List (UIA) elements
List Item (UIA) elements
Table (UIA) elements
Tab Control (UIA) elements
Tab Item (UIA) elements
Hyperlink (UIA) elements
Tree View (UIA) elements
Tree View Item (UIA) elements
Window (UIA) elements
主动辅助元素:
Button (AA) elements
Combo Box (AA) elements
List Box (AA) elements
Edit (AA) elements
最后
Application elements (what some people call the root element)
SAP Main Windows
这些是您可以使用发送密钥的唯一地方。
对于发送密钥事件,这些事件通常用于在 Citrix 等瘦客户端应用程序上使用发送密钥。在这里发布了一个很好的解释:
https://www.rpaforum.net/threads/global-send-keys-and-send-key-events.1587/
Blue Prism 门户网站上还有一份关于发送密钥的数据表,称为“发送密钥和发送密钥事件指南”,建议您阅读它。为了回答 Op 的各种问题。
如果您使用 HTML 模式进行监视,则不能使用 HTML 元素来调用发送密钥。您可以肯定地使用根应用程序,但不能使用实际的间谍元素。您可以尝试一系列事件,您可以使用 HTML/AA/类似来单击您要定位的元素,然后使用上面列出的元素或根元素来调用发送键来执行您正在寻找的任务。在这种情况下,您尝试在发送密钥中执行的任务是
{DOWN}
用于向下箭头或
{PGDN}
如果你愿意,可以向下翻页,然后
{ENTER}
输入函数
正如 Blue Prism 和其他资源所述,除非您绝对不需要使用 Send Key Events,否则它不是首选。