Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import threading
- from tkinter import *
- import pyautogui
- import random
- import keyboard
- root = Tk()
- root.title("AutoAvailable 1.3")
- root.geometry("180x170")
- root.resizable(False, False)
- time.sleep(0.5)
- stop = False
- def button_stop_command():
- global stop
- stop = True
- def button_start_command():
- global stop
- stop = False
- time.sleep(2)
- pyautogui.hotkey('win', 'd')
- while True and not stop:
- MouseX = random.randint(0, 1300)
- MouseY = random.randint(0, 700)
- MouseSleep = random.randint(10, 60)
- pyautogui.moveTo(MouseX, MouseY, duration=1)
- pyautogui.click()
- time.sleep(MouseSleep)
- def button_starter():
- t = threading.Thread(target=button_start_command)
- t.start()
- label = Label(root, text="AutoAvailable Utility\nAll Windows are minimised\nUse the controls below")
- label.pack(pady=10)
- button_start = Button(root, text="START", command=button_starter, width = 15)
- button_start.pack(pady=10)
- button_stop = Button(root, text="STOP", command=button_stop_command, width = 15)
- button_stop.pack(pady=10)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement