Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
"""Spambot text typer for MacOS - Jack Baumgartel
Instructions: Type or paste your message into an empty txt, csv, doc, or py file,
then open terminal, navigate to a directory that has both your message file and this
file inside. run the following command in the terminal, and enjoy! 'python3 spambot.py' """
import pyautogui
import time
pyautogui.FAILSAFE = True
print('What is your message file name?')
name = input()
words = []
with open(name, "r") as f:
words = f.read().split()
time.sleep(0.5)
starttime = 20
print('Open the location you wish to write your message, click in the type area, \nand wait! The program will start typing your message in {}s. To end the \nprogram, move your cursor quickly to any corner of your screen!'.format(starttime))
time.sleep(starttime)
for i in range(len(words)):
pyautogui.typewrite(words[i])
pyautogui.press("enter")