❓ Help Make python script using pyautogui that auto comments numbers

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.
 

About this Thread

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

Trending Topics

Online now

Members online
1,079
Guests online
917
Total visitors
1,996

Forum statistics

Threads
2,283,723
Posts
29,017,486
Members
1,221,572
Latest member
kennethhh27
Back
Top