moved tabletop scripts to dedicated folder

This commit is contained in:
J-onasJones 2024-10-08 20:06:09 +02:00
parent 37840c4dbe
commit 5b52d79155
3 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,24 @@
import pyautogui
import time
FIRSTCLICK_X = 2300
FIRSTCLICK_Y = 70
INBETWEENSLEEPTIME = 0.2
SECONDCLICK_X = 1760
SECONDCLICK_Y = 1140
TIMEOUTSLEEPTIME = 2
count = 0
time.sleep(3)
while True:
# Click at pixel (2300, 70)
pyautogui.click(FIRSTCLICK_X, FIRSTCLICK_Y)
time.sleep(INBETWEENSLEEPTIME)
# Click at pixel (1760, 1140)
pyautogui.click(SECONDCLICK_X, SECONDCLICK_Y)
time.sleep(TIMEOUTSLEEPTIME) # Wait for 3 seconds before repeating
count += 1
print(count, end="\r")

View file

@ -0,0 +1,29 @@
import pyautogui
import time
import os
time.sleep(3)
while True:
# Click at pixel (1870, 675)
pyautogui.moveTo(1870, 675)
pyautogui.click(1870, 675, button='right')
time.sleep(0.15)
# Click at pixel (2030, 875)
pyautogui.click(2030, 875)
time.sleep(0.15)
# Click at pixel (1700, 1110)
pyautogui.click(1700, 1110)
time.sleep(0.15)
# Get the current Unix timestamp
timestamp = str(int(time.time()))
# Enter the timestamp as key presses
pyautogui.write(timestamp)
# Click at pixel (1770, 1200)
pyautogui.click(1770, 1200)
time.sleep(0.2)

View file

@ -0,0 +1,35 @@
import pyautogui
import time
import random
RIGHTCLICK_X = 1890
RIGHTCLICK_Y = 970
FIRSTCLICK_X = 2055
FIRSTCLICK_Y = 1225
SECONDCLICK_XMIN = 600
SECONDCLICK_XMAX = 1100
SECONDCLICK_YMIN = 600
SECONDCLICK_YMAX = 1100
CONFIRMCLICK_X = 760
CONFIRMCLICK_Y = 1550
SLEEPTIME = 0.15
time.sleep(3)
#pyautogui.click(RIGHTCLICK_X, RIGHTCLICK_Y, button='right')
while True:
# Click at pixel (2055, 1225)
pyautogui.click(FIRSTCLICK_X, FIRSTCLICK_Y)
time.sleep(SLEEPTIME)
# Generate random x and y coordinates
x = random.randint(SECONDCLICK_XMIN, SECONDCLICK_XMAX)
y = random.randint(SECONDCLICK_YMIN, SECONDCLICK_YMAX)
# Click at the random coordinates
pyautogui.click(x, y)
time.sleep(SLEEPTIME)
# Click at pixel (760, 1550)
pyautogui.click(CONFIRMCLICK_X, CONFIRMCLICK_Y)
time.sleep(SLEEPTIME)