如何获取 gencache.EnsureDispatch 名称

发布于 2024-12-20 19:30:39 字数 162 浏览 0 评论 0原文

如何获取 win32com.client.gencache.EnsureDispath 名称?

例如,我有一个名为“xxxxx”的应用程序,当我使用 makepy.py 时,Python 对象浏览器会检测到它。如何获得“Excel.Application”之类的名称?

How do you get the name of a win32com.client.gencache.EnsureDispath name?

For example, I have an application named "xxxxx", and the Python object browser detects it when I use makepy.py. How do I get name like "Excel.Application"?

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

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

发布评论

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

评论(1

飘落散花 2024-12-27 19:30:39

您可以使用combrowser.py来查找PC上正在运行的应用程序。进入win32com库文件夹,可以找到python脚本。

您可以获取所有正在运行的应用程序的列表。有时,如果您获取应用程序的令牌或绰号而不是名称,则会很棘手。但您可以使用这些绰号来访问应用程序。

You can use the combrowser.py to find the running application on your PC. Go to the win32com library folder and you can find the python script.

You can get the list of all the running application. Sometimes it would be tricky if you get the token or moniker of the application instead of the name. But you can use those moniker to reach the application instead.

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