Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试自动化应用程序。我可以将文本发送到文本控件并在写完文本后发送回车键。现在我想访问菜单栏和子菜单,例如选择文件/打开和选择要打开的文件。我怎么做?注意:我使用 Spy++ 来获取控件的类名和其他属性,但菜单栏没有任何类名。
我解决了我的问题。我发送了 Alt + 相关字符以打开菜单。我正在发送一个特定的字符来选择子菜单。非常感谢 RyanDev 在 Codeproject 中回答这个问题。