Python Win32GUI 查找窗口

发布于 2024-09-19 17:25:20 字数 207 浏览 4 评论 0原文

我有一个 GUI Windows 应用程序,我想使用 Python 中的扩展 Win32gui 来控制它。如何找到必须提供给 FindWindow 函数的字符串 s

我需要使用以下代码:

import win32gui as gui
gui.FindWindow(s, None)

谢谢!

I have a GUI Windows application and I want to control it using the extension Win32gui in Python. How can I find the string s that I must give to the FindWindow function?

I need to use the following code:

import win32gui as gui
gui.FindWindow(s, None)

Thaks!

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

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

发布评论

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

评论(1

在巴黎塔顶看东京樱花 2024-09-26 17:25:22

您通常会使用 Spy++(Visual Studio 附带)等工具或一些替代工具:Windows SpyWinCheat窗口侦探

You would usually use a tool like Spy++ (comes with Visual Studio) or some of the alternatives: Windows Spy, WinCheat or Window Detective

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