-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscripts.py
More file actions
30 lines (27 loc) · 848 Bytes
/
scripts.py
File metadata and controls
30 lines (27 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import win32api
import win32con
import keyboard
import time
import random
import mouse
class Scripts:
""" FAST MINING MACROS"""
def fastfarm(self, pickaxe_key, grenade_key):
keyboard.send(grenade_key)
time.sleep(0.04)
keyboard.send(pickaxe_key)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0,0,0)
time.sleep(0.35) # this delay actually depends on ping
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0,0,0)
""" RECOIL CONTROL MACROS"""
def recoil_control(self, recoil_method):
"""
1st method - stable
2nd method - unstable
"""
if recoil_method == 1:
time.sleep(0.35)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0,0,0)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0,0,0)
elif recoil_method == 2:
win32api.mouse_event(0x0001, 0, random.randint(1, 2))