From 2efd90c1a1c95381eb97abbd58822c5e2a60dfe0 Mon Sep 17 00:00:00 2001 From: hwf1324 <1398969445@qq.com> Date: Fri, 27 Sep 2024 02:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=BC=A0=E6=A0=87=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E7=9A=84=E4=B8=80=E9=83=A8=E5=88=86=E6=8C=89=E9=92=AE?= =?UTF-8?q?=20`name`=20=E5=B1=9E=E6=80=A7=E4=B8=BA=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addon/appModules/wechat.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/addon/appModules/wechat.py b/addon/appModules/wechat.py index a087eb0..8e0aa42 100644 --- a/addon/appModules/wechat.py +++ b/addon/appModules/wechat.py @@ -105,6 +105,15 @@ def event_gainFocus(self, obj, nextHandler, isFocus=False): nextHandler() + def event_mouseMove(self, obj: NVDAObject, nextHandler): + if obj.role == role.BUTTON and obj.name == "" and obj.previous.role == role.PANE: + for child in obj.previous.children: + if child.role == role.STATICTEXT and child.name != "": + obj.name = child.name + break + nextHandler() + + @script( description="是否自动朗读新消息", category="PC微信增强",