实现自动输入密码
This commit is contained in:
22
win32.py
Normal file
22
win32.py
Normal 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())
|
Reference in New Issue
Block a user