Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Voided-Git committed Nov 12, 2021
1 parent ffd45dd commit 12610d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autotyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
from os import system


# set the window title
system("title AutoTyper")


# inputting integers (error checking)
def int_input(prompt: str):
while True:
Expand All @@ -20,6 +24,8 @@ def int_input(prompt: str):
repeat = int_input("Enter the amount of times the message should be repeated: ")
# asking for the delay between each message
delay = int_input("Enter the delay between each message (0 can be used): ")
# waiting for 't' to send the messages
print("Press 't' to start sending messages.")

# waiting for 't' to be entered (removing the 't' once entered)
wait("t")
Expand All @@ -28,6 +34,7 @@ def int_input(prompt: str):
# sending loop
for _ in range(repeat):
write(text = message, delay = delay)
press_and_release("return")

# when finished
input("All done! (press enter to continue)")
Expand Down

0 comments on commit 12610d9

Please sign in to comment.