Jump to content

Why isn't my code working?


Recommended Posts

Hey, I'm making a bot for a flash game I found, MiniDrumPro ( found at http://www.notdoppler.com/minidrumpro.php), but I can't seem to get my bot for it working. By the way it was made for notdoppler at 1152x864 res. Here's my code:

CODE
;Script buit for 1152x864 resolution on www.notdoppler.com, if you dont have it, then just try looking at the code.

MsgBox(0, "Started", "Script starts when you press home, press end to exit.")

HotKeySet("{HOME}", "Start")

HotKeySet("{END}", "Quit")

HotKeySet("{PAUSE}", "Pause")

Local $Paused

While 1

Sleep(100)

WEnd

Func Start()

While 1

$Hit = PixelGetColor(262, 344)

If $Hit = 37152893 Then Sleep(1)

If $Hit = 53905155 Then Send("e")

If $Hit = 376510080 Then Send("i")

If $Hit = 414336 Then Send("{SPACE}")

WEnd

EndFunc

While 1

Sleep(100)

WEnd

Func Pause()

$Paused = NOT $Paused

While $Paused

ToolTip("Script is paused", 0, 0)

sleep(100)

ToolTip("")

WEnd

EndFunc

While 1

Sleep(100)

WEnd

Func Quit()

Exit

EndFunc

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

Make sure that PixelGetColor(coordinates) return one of expected colors.

I'm not sure what your saying, could you give me an example?

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...