PostOsu! Simple AHK Spin Script

Posts 115 of 15 · Page 1 of 1
Osu! Simple AHK Spin Script
Osu! AHK Spin Script

Credits go to CodeKiller from the AHK Forums for the base source


Note that the spinner goes a little bit slower than the GIF, it's because the gif is in 30~40FPS.

 
Code:
Code:
~Z::
   {
       MouseGetPos X, Y
       MouseMove X+25, Y+15, 0
       MouseMove X+40, Y+25, 0
       MouseMove X+45, Y+15, 0
       MouseMove X+50, Y, 0
       MouseMove X+45, Y-15, 0
       MouseMove X+40, Y-25, 0
       MouseMove X+15, Y-15, 0
       MouseMove X, Y, 0
   } 
Return

Basically hold Z and it will spin circles for you! Only thing i added to the code was the hotkey (Z) and an end statement (Return). I did change the values a little, i like them a bit more that way since the circle is just a bit bigger.

There will be both the .ahk file and an .exe file included with the rar. I think (even while you don't have the AHK program installed) you can just open the .ahk with notepad and see the source for yourself. But if you don't have any access to this tool, there is a converted .exe but you won't be able to see or alter the code to your liking that way.

Again, this is just a source-reupload (or repost). I don't claim the code written in the program. I take no responsibility if you get banned from using this tool. It's a simple AHK Macro, best thing you can do is use an MD5 Hash Changer and hope for the best Osu! doesn't ban you for reconizing the code or reconizes you are using macro's. This doesn't inject into your game, it's external and you can even try it out on your desktop so it shouldn't be detected by Osu!.

Virusscans:
Virustotal (0/54)
Jotti (0/21)

Osu! Simple SpinScript_mpgh.net.rar387 KB · 3,966 downloads 3/63 malicious
Really useful. Thanks
how to make it detect the center of the spinner?
or... can you make it detect the center of the spinner and allow it to have a bigger spinning radius?
Sometimes it argues with me when I'm using keyboard. Does using keys interfere with it? If soI hope it gets fixed then that's dumb!
Nice, but could you somehow increase the spin speed?
Quote Originally Posted by reflex1ve View Post
Nice, but could you somehow increase the spin speed?
Code:
c::LButton
x::RButton
F12::Suspend
Space::
MouseGetPos X, Y
sendinput {RButton down}
while getkeystate("Space")
{
if getkeystate("Space") = 0
	break
else
	MouseMove 920, 500, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 920, 580, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 1000, 580, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 1000, 500, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 920, 500, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 920, 580, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 1000, 580, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 1000, 500, 0
if getkeystate("RButton")=0
	sendinput {RButton down}
}
sendinput {RButton up}
MouseMove X, Y, 0
Return
I got 477 with this code on 1920x1080 resolution, remember to turn off raw input.

my settings:
I = K1
O = K2
P = smoke

I use C and X to click, they are binded to M1 and M2 with that script.

Another code for X as K2 and Z as K1
Code:
F12::Suspend
Space::
MouseGetPos X, Y
sendinput {z down}
while getkeystate("Space")
{
if getkeystate("Space") = 0
	break
else
	MouseMove 920, 500, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 920, 580, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 1000, 580, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 1000, 500, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 920, 500, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 920, 580, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 1000, 580, 0
if getkeystate("Space") = 0
	break
else
	MouseMove 1000, 500, 0
if getkeystate("z")=0
	sendinput {z down}
}
sendinput {z up}
MouseMove X, Y, 0
Return
Press and hold Space bar to spin
Khelly, I'm using your second script, when I stop holding spacebar the cursor jumps to one of the corners. How can I make it to go to the middle?
Quote Originally Posted by gorianders View Post
Khelly, I'm using your second script, when I stop holding spacebar the cursor jumps to one of the corners. How can I make it to go to the middle?
You must turn off raw input for this reason.
And if you want it to go to the middle then change the line
MouseMove X, Y, 0 to
MouseMove 960, 540, 0
how to deactivate the script, sorry.. i am a newbie in this kind of stuff
Can you bind the key to something else?
Quote Originally Posted by Medaka-Chan View Post
Can you bind the key to something else?
To bind the key to something else change the "~Z::" to "~X::" or "~Y" or whatever you want (example below), but it appears that you need to have the key you bind it to be on of your clicking keys you have bound in osu! for it to work. You could alternatively hold your new bound key while z or x if you left them default in osu! and it should work. Haven't tried it but I use AHK so just going off the code.

Code:
~G::
   {
       MouseGetPos X, Y
       MouseMove X+25, Y+15, 0
       MouseMove X+40, Y+25, 0
       MouseMove X+45, Y+15, 0
       MouseMove X+50, Y, 0
       MouseMove X+45, Y-15, 0
       MouseMove X+40, Y-25, 0
       MouseMove X+15, Y-15, 0
       MouseMove X, Y, 0
   } 
Return
- - - Updated - - -

Quote Originally Posted by jagaadhi1277 View Post
how to deactivate the script, sorry.. i am a newbie in this kind of stuff
I know you asked this a long time ago, but you can right click the green A icon in the notification area and exit. Or, I re-wrote the script a little to add a toggle to it. Here is the raw script. If you want I can compile it for you to download if you don't have ahk, but then you wouldn't be able to change the key it is bound to. (Z)

Code:
#NoEnv 
SendMode Input
SetWorkingDir %A_ScriptDir%
 
#SingleInstance force
DetectHiddenWindows, On
#Persistent

Hotkey_Name := "~Z"   ; <------ Change this to whatever key you want to be your hotkey !!!LEAVE THE TILDE!!!


Hotkey, If, Auto
Hotkey, %Hotkey_Name%, Spin
return

F8:: Gosub, ToggleAuto

#If Auto

Spin:
{
	MouseGetPos X, Y
	MouseMove X+25, Y+15, 0
	MouseMove X+40, Y+25, 0
	MouseMove X+45, Y+15, 0
	MouseMove X+50, Y, 0
	MouseMove X+45, Y-15, 0
	MouseMove X+40, Y-25, 0
	MouseMove X+15, Y-15, 0
	MouseMove X, Y, 0
}
Return

ToggleAuto:
Auto := !Auto
if (Auto)
{
	SplashTextOn,,, Auto Spin---- ON ----
	Sleep 750
	SplashTextOff
}
Else
{
	SplashTextOn,,, Auto Spin---- OFF ----
	Sleep 750
	SplashTextOff
}
Return
Posts 115 of 15 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?