🔒 Closed Make python script using pyautogui that auto comments numbers

Status
Not open for further replies.
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.
 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 532
    Views
  • 1
    Participants
Last reply from:
Unknown user

Trending Topics

Online now

Members online
798
Guests online
13,967
Total visitors
14,765

Forum statistics

Threads
2,362,164
Posts
29,414,598
Members
1,056,852
Latest member
jomz123
Back
Top