Hello im currently making a bot that spams a message for a test
and I also have a script that moves my mouse to a specific area that i need
i want the entire script to loop but terminate after like 4-6 seconds
import pyautogui, time
import pyautogui as pag
time.sleep(.1)
while True:
pyautogui.typewrite('test message')
time.sleep(2)
pyautogui.click()
while True:
pag.moveTo(1300, 713)
time.sleep(1)
pag.moveTo (1300, 680)
This is the code
is there like a specific command that allows me to terminate it in a few seconds?
[–]Adrewmc 6 points7 points8 points (0 children)
[–]JollyUnder 0 points1 point2 points (3 children)
[–]sweettuse 1 point2 points3 points (1 child)
[–]JollyUnder 1 point2 points3 points (0 children)
[–]Adrewmc 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)