AI chat

Move my mouse in a slow circle while F8 is held

How it works

  1. Hotkey activation: rb.bind("F8", ...) intercepts the press and spawns a background coroutine using rb.run() if one is not already active.
  2. Hold polling: rb.input.is_down("F8") checks physical key state every 20 ms. When you release F8, the loop terminates immediately.
  3. Smooth pathing: Trig functions calculate target positions along a circle of radius 100 px. Sub-pixel movements are preserved in accumulator variables (carry_x / carry_y) so integer pixel steps don't introduce geometric drift over multiple revolutions.
  4. Cleanup: rb.on("stop") and rb.on("blur") ensure the motion task is stopped whenever the script is paused or the target window loses focus.

Learn more

ah tight

Glad it works. If it feels too tight (small circle), the two knobs at the top are all you need:

  • RADIUS = 100 — pixel radius of the circle. Try 250 for a wider sweep.
  • DURATION = 3.5 — seconds per revolution. Raise it for slower, lower for faster.

Leave STEP_MS at 20; it's fine for smooth motion at any radius. Just tell me the numbers you want and I'll drop them in.