yinkaisheng / Python-UIAutomation-for-Windows

🐍Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
Apache License 2.0
2.3k stars 462 forks source link

企业微信无法获取信息 #252

Open staticImages opened 10 months ago

staticImages commented 10 months ago

最新版的企业微信无法获取到所有的控件信息,试过了管理员启动,加上--force-renderer-accessibility都不行,只能拿到简单的两个窗口信息

UIAutomation 2.0.18 (Python 3.9.13, 64 bit)
2023-08-16 17:45:54.591 automation.py[79] main -> Starts, Current Cursor Position: (1248, 116)
ControlType: PaneControl    ClassName: #32769    AutomationId:     Rect: (0,0,1920,1080)[1920x1080]    Name: '桌面 1'    Handle: 0x10010(65552)    Depth: 0    SupportedPattern: LegacyIAccessiblePattern
    ControlType: WindowControl    ClassName: WeWorkWindow    AutomationId:     Rect: (424,87,1604,890)[1180x803]    Name: '企业微信'    Handle: 0x380816(3672086)    Depth: 1    SupportedPattern: LegacyIAccessiblePattern TransformPattern WindowPattern
        ControlType: PaneControl    ClassName: TitleBarWindow    AutomationId:     Rect: (424,87,1604,115)[1180x28]    Name: ''    Handle: 0x2309D4(2296276)    Depth: 2    SupportedPattern: LegacyIAccessiblePattern
        ControlType: PaneControl    ClassName: PerryShadowWnd    AutomationId:     Rect: (406,69,1622,908)[1216x839]    Name: ''    Handle: 0x200D04(2100484)    Depth: 2    SupportedPattern: LegacyIAccessiblePattern TransformPattern
2023-08-16 17:45:54.763 automation.py[114] main -> Ends

请问这个有解决方案吗?

19caiji commented 10 months ago

用inspect去定位,然后数有几层,是什么name或className.

yinkaisheng commented 9 months ago

应该是企业微信不支持,支不支持是由应用程序决定的。

cxiaowen commented 2 months ago

企微用fulter开发的,没有组件,智能用截屏来做吧