zhiwei Posted July 27, 2008 Share Posted July 27, 2008 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 More sharing options...
d4rk Posted July 27, 2008 Share Posted July 27, 2008 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 More sharing options...
Andreik Posted July 27, 2008 Share Posted July 27, 2008 PixelGetColor returns decimal value of pixel's color. Use Hex(). When the words fail... music speaks. Link to comment Share on other sites More sharing options...
zhiwei Posted July 30, 2008 Author Share Posted July 30, 2008 Somehow 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. Link to comment Share on other sites More sharing options...
zhiwei Posted July 30, 2008 Author Share Posted July 30, 2008 Sry Andriek. but wat does {PixelGetColor returns decimal value of pixel's color. Use Hex()} mean? Link to comment Share on other sites More sharing options...
Andreik Posted July 30, 2008 Share Posted July 30, 2008 (edited) 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 July 30, 2008 by Andreik When the words fail... music speaks. Link to comment Share on other sites More sharing options...
zhiwei Posted August 1, 2008 Author Share Posted August 1, 2008 I had tried your method but still not working. Can help me see y cannot work at all?While 1If "0x" & Hex(PixelGetColor(45,99)) = 0x11DAA4 ThenSend("{a down}")sleep (10)EndIfIf "0x" & Hex(PixelGetColor(118,102)) = 0xF28532 ThenSend("{k down}")sleep (10)EndIfIf "0x" & Hex(PixelGetColor(189,99)) = 0xE8A660 ThenSend("{s down}")sleep (10)EndIfIf "0x" & Hex(PixelGetColor(260,103)) = 0x11DEA5 ThenSend("{l down}")sleep (10)EndIfWEnd Link to comment Share on other sites More sharing options...
Andreik Posted August 1, 2008 Share Posted August 1, 2008 The code is correct but verify if coordinates is correct. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
zhiwei Posted August 1, 2008 Author Share Posted August 1, 2008 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. 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