We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e38b5b4 + d748d3e commit e8d9245Copy full SHA for e8d9245
1 file changed
source/_UIAHandler.py
@@ -756,7 +756,9 @@ def _isUIAWindowHelper(self,hwnd):
756
canUseOlderInProcessApproach = bool(appModule.helperLocalBindingHandle)
757
isOfficeApp = appModule.productName.startswith(("Microsoft Office", "Microsoft Outlook"))
758
if (
759
- (
+ # An MS Word document window
760
+ windowClass == "_WwG"
761
+ and (
762
winVersion.getWinVer() < winVersion.WIN10
763
or (
764
# An MS Office app before build 13901
@@ -767,8 +769,6 @@ def _isUIAWindowHelper(self,hwnd):
767
769
)
768
770
771
- # An MS Word document window
- and windowClass == "_WwG"
772
# Disabling is only useful if we can inject in-process (and use our older code)
773
and canUseOlderInProcessApproach
774
# Allow the user to still explicitly force UIA support
0 commit comments