Jump to content

need great help


Recommended Posts

Eh guy im working on a autobot for a pc DDR game. But somehow i tink i too noob to create one. Can some1 help me c what is wrong with the loop i written.

While 1

If PixelGetColor(50,100) = 0x34FDC5 Then

Send("{a down}")

sleep (10)

EndIf

If PixelGetColor(120,100) = 0xF7D37E Then

Send("{k down}")

sleep (10)

EndIf

If PixelGetColor(188,100) = 0xF7D37E Then

Send("{s down}")

sleep (10)

EndIf

If PixelGetColor(257,100) = 0x34FDC5 Then

Send("{l down}")

sleep (10)

EndIf

WEnd

Link to comment
Share on other sites

what's the error ?

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Link to comment
Share on other sites

Sry Andriek. but wat does {PixelGetColor returns decimal value of pixel's color. Use Hex()} mean?

Mean that you can use PixelGetColor like in this example:

If "0x" & Hex(PixelGetColor(50,100)) = 0x34FDC5 Then
Edited by Andreik

When the words fail... music speaks.

Link to comment
Share on other sites

I had tried your method but still not working. Can help me see y cannot work at all?

While 1

If "0x" & Hex(PixelGetColor(45,99)) = 0x11DAA4 Then

Send("{a down}")

sleep (10)

EndIf

If "0x" & Hex(PixelGetColor(118,102)) = 0xF28532 Then

Send("{k down}")

sleep (10)

EndIf

If "0x" & Hex(PixelGetColor(189,99)) = 0xE8A660 Then

Send("{s down}")

sleep (10)

EndIf

If "0x" & Hex(PixelGetColor(260,103)) = 0x11DEA5 Then

Send("{l down}")

sleep (10)

EndIf

WEnd

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...