import keyboard, time
print('You can use :smile: on discord if you want to use emojis.')
write = input('Enter the text you want to autotype:')
def typeman():
time.sleep(1)
keyboard.write(write)
keyboard.press_and_release('enter')
while True:
if keyboard.is_pressed("w"):
while True:
if keyboard.is_pressed("s"):
break
typeman()
This code used to work a couple of months ago, when I press W
it types write
variable automatically, when I press S
it's supposed to stop, but it doesn't work anymore. how to I fix this, and when it used to work I had to hold S
for a while for it to stop, how do I break easier?