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.
我最近开始研究茄子工具。在其中一个屏幕中,我有菜单栏,如文件、视图、帮助等,每个菜单栏都包含菜单项。有时我必须选择菜单栏中的第一个菜单项,有时我必须选择菜单栏中的另一个菜单项。如何在菜单栏中选择菜单项。
如果有人有答案,有人可以回复。
您可以在菜单项上使用快捷方式或热键。
例如:到达示例中的“关于”菜单项。
typeText altKey&H typeText A
如果您没有任何热键。您可以搜索图像“帮助”并单击然后使用向下箭头
WaitFor 10, "helpButtonImage" Click FoundImageLocation() typeText downArrow,downArrow,return
我们可以通过使用参考图像构建搜索矩形来做到这一点