import pynput
import time
import random
from random import seed
from random import randint
from pynput.mouse import Button, Controller
mouse = Controller()
from pynput.keyboard import Key, Controller
keyboard = Controller()
seed(436354)
input('Press enter to continue: ')
print("activating in 5 seconds")
time.sleep(5)
while True:
    time.sleep(randint(30,40)) #you can change the numbers, 30 is the minimum time before an event, 40 is the max time before an event
    event=randint(1,6)
    if event == 1:
        print('EVENT 1 [chat opener]')
        keyboard.press('t') #change to your chat key
        time.sleep(0.1)
        keyboard.release('t') #change to your chat key
    if event == 2:
        print('EVENT 2 [mouse movement]')
        mouse.move(randint(60,200),randint(20,300))
    if event == 3:
        print('EVENT 3 [scroll]')
        mouse.scroll(0, randint(2,6))
    if event == 4:
        print('EVENT 4 [drop]')
        keyboard.press('q')#change to your drop key
        time.sleep(0.1)
        keyboard.release('q')#change to your drop key
    if event == 5:
        print('EVENT 5 [inventory opener]')
        keyboard.press('e')#change to your inventory key
        time.sleep(0.1)
        keyboard.release('e')#change to your inventory key
    if event == 6:
        print('EVENT 6 [hand-switch]')
        keyboard.press('f')#change to your hand-switch key
        time.sleep(0.1)
        keyboard.release('f')#change to your hand-switch key
        
