Created
September 21, 2024 15:09
-
-
Save Rorythedev/3005da15f68e983c8d3b1e0e66dabbc6 to your computer and use it in GitHub Desktop.
creates a macro for osu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
import time | |
print("Welcome to the Osu! Macro Creator!") | |
print("This script will help you create a custom macro for your Osu! gameplay.") | |
# Get user input for the key to be pressed | |
key_to_press = input("What key do you want to press? (e.g., 'z', 'x', 'space'): ") | |
# Get user input for the delay between key presses | |
delay = float(input("How long do you want the delay to be (in seconds)? ")) | |
# Get user input for the number of times to repeat the macro | |
num_repeats = int(input("How many times do you want to repeat the macro? ")) | |
print("Great! Let's get started.") | |
# Perform the macro | |
for i in range(num_repeats): | |
pyautogui.press(key_to_press) | |
time.sleep(delay) | |
print("Macro completed successfully!") | |
print("Thank you for using the Osu! Macro Creator. Have fun playing!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment