itchat

作者: tf_dejs | 来源:发表于2022-02-14 09:53 被阅读0次

使用itchat实现获取电脑截屏

import itchat
from itchat.content import TEXT
from PIL import ImageGrab

@itchat.msg_register(TEXT)
def screen(msg):
    if msg['Text'] == 'screen':
        im = ImageGrab.grab()
        im.save('screen.png')
        itchat.send('@img@%s' % 'screen.png')

itchat.auto_login(True)
itchat.run()

使用itchat...

import itchat

相关文章

网友评论

      本文标题:itchat

      本文链接:https://www.haomeiwen.com/subject/xsdclrtx.html