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.
我正在使用以下代码,但工具栏按钮根本无法访问。错误是“未知错误”
Window(window_name).WinToolBar("Example Toolbar").Press "Print"
此处示例工具栏已添加到对象存储库中,并正确突出显示。
您确定错误是未知错误而不是无法识别标准对象的指定项...。
也许您使用了错误的名称,这将为您提供WinToolBar
WinToolBar
MsgBox Window(window_name).WinToolBar("Example Toolbar").GetContent()