工具栏按钮根本无法访问

发布于 2024-09-08 19:41:43 字数 165 浏览 2 评论 0原文

我正在使用以下代码,但根本无法访问工具栏按钮。错误是“未知错误”,

Window(window_name).WinToolBar("Example Toolbar").Press "Print"

此处示例工具栏已添加到对象存储库中,并正确突出显示。

I am using the following code but the toolbar button doesnt get accessed at all. The error is "unknown error"

Window(window_name).WinToolBar("Example Toolbar").Press "Print"

Here Example Toolbar is added to the object repo, and gets highlighted correctly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇俏 2024-09-15 19:41:43

您确定错误是未知错误,而不是无法识别标准对象的指定项目...

也许您使用了错误的名称,这将为您提供 WinToolBar 中的项目名称

MsgBox Window(window_name).WinToolBar("Example Toolbar").GetContent()

Are you sure the error is Unknown Error and not Cannot identify the specified item of the Standard object....

Perhaps you're using the wrong name, this will give you the names of the items in the WinToolBar

MsgBox Window(window_name).WinToolBar("Example Toolbar").GetContent()
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文