原文:https://www.cnblogs.com/zoro-robin/p/5591185.html

原文:https://www.cnblogs.com/aziji/p/10483242.html

 

 

import win32gui
import win32api


# 原文:https://www.cnblogs.com/aziji/p/10483242.html
classname = "Chrome_WidgetWin_1"
titlename = "在线翻译_有道 - Google Chrome"
#获取句柄
hwnd = win32gui.FindWindow(classname, titlename)
#获取窗口左上角和右下角坐标
left, top, right, bottom = win32gui.GetWindowRect(hwnd)

print(left)

 

窗口的信息就通过这个工具得到的:窗口查找工具 WinSpy-1.0.3

 

 

窗口遍历:

  之后补充

相关文章:

  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-12-10
  • 2021-07-26
猜你喜欢
  • 2022-12-23
  • 2021-10-10
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
相关资源
相似解决方案