Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拍一拍消息导致_split -> Find Control Timeout(0s): {ControlType: ButtonControl} #225

Open
SampsonFox opened this issue Apr 26, 2024 · 0 comments

Comments

@SampsonFox
Copy link

是因为在element.WeChatBase._split() 中未能将拍一拍消息分类,暂时的解决方法是38行加入下面这个elif语句


def _split(self, MsgItem):
  # print(MsgItem)
    uia.SetGlobalSearchTimeout(0)
    # print(MsgItem.GetRuntimeId())
    MsgItemName = MsgItem.Name
    if MsgItem.BoundingRectangle.height() == WxParam.SYS_TEXT_HEIGHT:
        Msg = ['SYS', MsgItemName, ''.join([str(i) for i in MsgItem.GetRuntimeId()])]
    elif MsgItem.BoundingRectangle.height() == WxParam.TIME_TEXT_HEIGHT:
        Msg = ['Time', MsgItemName, ''.join([str(i) for i in MsgItem.GetRuntimeId()])]
    elif MsgItem.BoundingRectangle.height() == WxParam.RECALL_TEXT_HEIGHT:
        if '撤回' in MsgItemName:
            Msg = ['Recall', MsgItemName, ''.join([str(i) for i in MsgItem.GetRuntimeId()])]
        else:
            Msg = ['SYS', MsgItemName, ''.join([str(i) for i in MsgItem.GetRuntimeId()])]
            
    # 加入下面这个elif语句
    elif MsgItem.BoundingRectangle.height() == 51:
        Msg = ['pyp', MsgItemName, ''.join([str(i) for i in MsgItem.GetRuntimeId()])]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant