23 lines
471 B
Python
23 lines
471 B
Python
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())
|