❓ 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
  • 493
    Views
  • 1
    Participants
Last reply from:
Unknown user

Trending Topics

Online now

Members online
1,139
Guests online
1,361
Total visitors
2,500

Forum statistics

Threads
2,273,442
Posts
28,949,527
Members
1,235,747
Latest member
_usteng_
Back
Top