实现自动输入密码

This commit is contained in:
2025-03-01 23:49:41 +08:00
commit 021be6fa01
11 changed files with 586 additions and 0 deletions

22
win32.py Normal file
View File

@@ -0,0 +1,22 @@
import os
import sys
import time
import win32gui
def get_wind_pos():
hwnd = win32gui.FindWindow(None, "多屏协同")
if hwnd == 0:
return (0,0,0,0)
else:
# print("找到相机窗口")
# print("hwnd:",hwnd)
# print("title:",win32gui.GetWindowText(hwnd))
# print("class:",win32gui.GetClassName(hwnd))
# print("pos:",win32gui.GetWindowRect(hwnd))
return win32gui.GetWindowRect(hwnd)
if __name__=="__main__":
print(get_wind_pos())