pos = win32api.GetCursorPos() #通过鼠标位置获取窗体句柄 handle= win32gui.WindowFromPoint(pos) #通过窗体名称获取窗体句柄(可通过spy++获取)
確定! 回上一頁