Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
initial commit
- Loading branch information
Jack Baumgartel
authored and
Jack Baumgartel
committed
Aug 14, 2020
0 parents
commit b813f79
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""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") |