Jump to content
Sign in to follow this  
zhiwei

need great help

Recommended Posts

zhiwei

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

Share this post


Link to post
Share on other sites
d4rk

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

Share this post


Link to post
Share on other sites
Andreik

PixelGetColor returns decimal value of pixel's color. Use Hex().


When the words fail... music speaks

Share this post


Link to post
Share on other sites
zhiwei

post-38359-1217398814_thumb.jpgSomehow after starting the auto script i didnt get any response. which is like no different to the game.

The picture is the demo of my game.

Share this post


Link to post
Share on other sites
zhiwei

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

Share this post


Link to post
Share on other sites
Andreik

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

Share this post


Link to post
Share on other sites
zhiwei

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

Share this post


Link to post
Share on other sites
Andreik

The code is correct but verify if coordinates is correct.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
zhiwei

Do you know how to change the coordinate to box type? Cause the one im using is only on 1 position i tink maybe abit hard to detect.

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  

×