Skip to content

Commit 85e077e

Browse files
reverse dir
1 parent ed9d140 commit 85e077e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

arrastools_nomacropanel.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@
2424

2525
# Function
2626
global size_automation, controller, randomwalld, ballcash, mouse, slowballs, step, ctrlswap
27-
global circle_mouse_active, circle_mouse_speed, circle_mouse_radius
27+
global circle_mouse_active, circle_mouse_speed, circle_mouse_radius, circle_mouse_direction
2828
step = 20
2929
s = 25 #ball spacing in px
3030
ctrlswap = False # When True, use Cmd (macOS) instead of Ctrl for macros
3131
circle_mouse_active = False
3232
circle_mouse_speed = 0.02 # Time delay between updates (lower = faster)
3333
circle_mouse_radius = 100 # Radius in pixels
34+
circle_mouse_direction = 1 # 1 for clockwise, -1 for counterclockwise
3435
size_automation = False
3536
engispamming = False
3637
engispam_thread = None
@@ -289,8 +290,8 @@ def brain_damage():
289290
time.sleep(0.02) # Add a small delay to prevent locking up your systema
290291

291292
def circle_mouse():
292-
"""Move mouse in circles around a center point"""
293-
global circle_mouse_active, circle_mouse_speed, circle_mouse_radius
293+
"""Move mouse in circles around a center point. Press '\\' to reverse direction."""
294+
global circle_mouse_active, circle_mouse_speed, circle_mouse_radius, circle_mouse_direction
294295
global controllednuke_points, controllednuke_active
295296
import math
296297

@@ -331,8 +332,8 @@ def temp_click_handler(x, y, button, pressed):
331332

332333
# Scale rotation step with radius for consistent arc length
333334
# Larger radius = smaller angular increment for smooth motion
334-
angle_step = 5.0 / max(circle_mouse_radius, 10)
335-
angle += angle_step
335+
angle_step_base = 5.0 / max(circle_mouse_radius, 10)
336+
angle += circle_mouse_direction * angle_step_base
336337
if angle >= 2 * math.pi:
337338
angle = 0
338339

@@ -756,10 +757,17 @@ def on_press(key):
756757
if 'ctrl' in pressed_keys:
757758
circle_mouse_active = not circle_mouse_active
758759
if circle_mouse_active:
760+
circle_mouse_direction = 1 # reset to default on start
759761
print(f"circle mouse on (radius: {circle_mouse_radius}, speed: {circle_mouse_speed})")
760762
start_circle_mouse()
761763
else:
762764
print("circle mouse off")
765+
elif hasattr(key, 'char') and key.char and key.char=='\\':
766+
# Toggle direction of circle while active
767+
if circle_mouse_active:
768+
circle_mouse_direction *= -1
769+
dir_text = 'clockwise' if circle_mouse_direction == 1 else 'counterclockwise'
770+
print(f"circle direction -> {dir_text}")
763771
elif hasattr(key, 'char') and key.char and key.char=='k':
764772
if 'ctrl' in pressed_keys:
765773
controller.tap(Key.enter)

0 commit comments

Comments
 (0)