输入文字后点回车,再输入想要轰炸的次数后再回车,最后把鼠标放在聊天框那里点一下,等待几秒即可,无需python环境,放到桌面双击就可以使用,直接上链接
链接: https://pan.baidu.com/s/1yzS4KRTWMpAM7hy1EuuD-g?pwd=keke 提取码: keke
源代码如下,感兴趣的可以看下,笔者也是小白,有问题的地方欢迎指正
from pynput.mouse import Button, Controller as MouseController
from pynput.keyboard import Key, Controller as KeyboardController
import time
def send_message(content, times):
mouse = MouseController()
keyboard = KeyboardController()
# 假设用户已经将鼠标移动到了输入框的位置并点击了它
# 程序将自动发送消息,无需用户干预
for _ in range(times):
keyboard.type(content)
time.sleep(0.1) # 停顿0.1秒这可以帮助避免输入太快导致的混乱
keyboard.press(Key.enter)
keyboard.release(Key.enter)
time.sleep(0.5) # 等待消息发送完成,可根据需要调整
if __name__ == "__main__":
# 提示用户输入信息和发送次数
message_content = input("请输入你想发送的消息:")
num_messages = int(input("请输入发送次数:"))
# 等待用户手动切换到目标应用程序
print("请在目标应用程序准备好后,等待5秒钟...")
time.sleep(5)
# 发送消息
send_message(message_content, num_messages)