qq.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:CNKI-QQFriend 作者: hsluoyz 项目源码 文件源码
def QQ_AtPerson(name):
    win32api.keybd_event(win32con.VK_SHIFT, 0, 0, 0);
    win32api.keybd_event(ord('2'), 0, 0, 0);
    win32api.keybd_event(ord('2'), 0, win32con.KEYEVENTF_KEYUP, 0);
    win32api.keybd_event(win32con.VK_SHIFT, 0, win32con.KEYEVENTF_KEYUP, 0);

    time.sleep(0.5)

    QQ_PrintText(user_list[name]['spell'])

    time.sleep(0.8)

    win32api.keybd_event(win32con.VK_RETURN, 0, 0, 0);
    win32api.keybd_event(win32con.VK_RETURN, 0, win32con.KEYEVENTF_KEYUP, 0);

# Parse out the AT directives.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号