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

代码疑似bug?? ChatWith(self, who, RollTimes=None): #47

Open
mjljy opened this issue Aug 25, 2022 · 0 comments
Open

代码疑似bug?? ChatWith(self, who, RollTimes=None): #47

mjljy opened this issue Aug 25, 2022 · 0 comments

Comments

@mjljy
Copy link

mjljy commented Aug 25, 2022

def ChatWith(self, who, RollTimes=None):
    '''
    打开某个聊天框
    who : 要打开的聊天框好友名,str;  * 最好完整匹配,不完全匹配只会选取搜索框第一个
    RollTimes : 默认向下滚动多少次,再进行搜索
    '''
    self.UiaAPI.SwitchToThisWindow()
    RollTimes = 10 if not RollTimes else RollTimes
    RollTimes = 0

RollTimes入参给0 不想再最近联系人列表搜索
但是 if not 0 = True , RollTimes又被赋值10 还是在最近联系人列表查找了

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