Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
7 views2 pages

Message

Uploaded by

realmendontcry25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Message

Uploaded by

realmendontcry25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

import pyautogui

import tkinter as tk
from tkinter import ttk
import random
import time
import threading
from pynput import mouse

is_left_click_held = False
is_movement_enabled = False
is_moving = False

horizontal_range = 2
min_vertical = 1
max_vertical = 20
min_firerate = 0.03
max_firerate = 0.04
toggle_button = 'num lock'

def move_mouse():
global is_left_click_held, is_movement_enabled, is_moving

if not is_movement_enabled:
return

is_moving = True

while is_left_click_held and is_movement_enabled:


if not is_left_click_held:
break

speed = speed_slider.get()
vertical_offset = int(min_vertical + (max_vertical - min_vertical) * (speed
/ 100))
horizontal_offset = random.randrange(-horizontal_range, horizontal_range)

pyautogui.moveRel(horizontal_offset, vertical_offset, duration=0.05)


time_offset = random.uniform(min_firerate, max_firerate)
time.sleep(time_offset)

is_moving = False

def on_click(x, y, button, pressed):


global is_left_click_held

if button == mouse.Button.left:
if pressed:
is_left_click_held = True
if is_movement_enabled and not is_moving:
move_mouse_thread = threading.Thread(target=move_mouse)
move_mouse_thread.daemon = True
move_mouse_thread.start()
else:
is_left_click_held = False

root = tk.Tk()
root.title("Mouse Speed Control")

tab_control = ttk.Notebook(root)
combat_tab = ttk.Frame(tab_control)
tab_control.add(combat_tab, text="Combat")

anti_recoil_group = ttk.LabelFrame(combat_tab, text="Anti Recoil", padding="10")


anti_recoil_group.grid(row=0, column=0, padx=20, pady=20, sticky="nsew")

chk_enable_anti_recoil = ttk.Checkbutton(anti_recoil_group, text="Enable Anti


Recoil", command=lambda: toggle_anti_recoil())
chk_enable_anti_recoil.grid(row=0, column=0, padx=10, pady=10)

speed_label = ttk.Label(anti_recoil_group, text="Speed:")


speed_label.grid(row=1, column=0, padx=10, pady=10)

speed_slider = ttk.Scale(anti_recoil_group, from_=1, to=100, orient="horizontal")


speed_slider.set(50)
speed_slider.grid(row=2, column=0, padx=10, pady=10)

tab_control.pack(expand=1, fill="both")

def toggle_anti_recoil():
global is_movement_enabled
is_movement_enabled = chk_enable_anti_recoil.instate(['selected'])

listener = mouse.Listener(on_click=on_click)
listener.start()

root.mainloop()

You might also like