如何获取 gencache.EnsureDispatch 名称
如何获取 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用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.