What's new

Help Make python script using pyautogui that auto comments numbers

CantonGuisado

Honorary Poster
Joined
Feb 15, 2019
Posts
298
Reaction
92
Points
146
make python script using pyautogui that auto comments numbers 1 to 10000 randomly. it should have 5 seconds interval
 
Sure! Here's a Python script using pyautogui that will auto comment numbers 1 to 10000 randomly with a 5-second interval:

Python:
import pyautogui
import time
import random

# Wait for 5 seconds before starting
time.sleep(5)

for i in range(1, 10001):
    # Generate a random comment
    comment = str(random.randint(1, 10000))

    # Move the cursor to the comment box (adjust the coordinates based on your screen resolution)
    pyautogui.moveTo(500, 500)

    # Click on the comment box
    pyautogui.click()

    # Type the comment
    pyautogui.typewrite(comment)

    # Press Enter to post the comment
    pyautogui.press('enter')

    # Wait for 5 seconds before posting the next comment
    time.sleep(5)

Make sure you have pyautogui installed before running this script. You can install it using pip with the command pip install pyautogui.

Please note that pyautogui interacts with the graphical user interface (GUI) of your computer, so make sure to test this script on a platform where you're comfortable with it running.
 
Back
Top