Sign in to follow this  
Followers 0
Dethredic

Help on first script

4 posts in this topic

#1 ·  Posted (edited)

ok

i am making a bot for a program(wardraft 3) and i need it to check a location for white.

if it is white i need it to "Send("{F10}"), Send("E"), Send("R")

If it isn't white i want it to continue with the script.

this is what i have so far:

While 1

$coord = PixelSearch( 161, 603, 161, 603, "0xFFFFFF")

***plus the send's***

what else do i need to make that work???

Thanks

Edited by Dethredic

"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites



nothing usefull comes up.

its not strictly a warcraft thing

its pretty much and IF, ELSE thing.

If:white is in the specified corordinate.

Thes send ("{F10}") ("E") ("R")

Else:do not send ("{F10}") ("E") ("R")

continue with script


"Its not about the 30 inch 1080p display, or the SLI 8800 ultras, or the DDR3 memory. It's about when you turn on your PC, does it return the favor?"Math is like sex. Sure, it may give some practical results, but that is not why we do it

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Something like:

$a = PixelGetColor(161, 603)
If $a = 0xFFFFFF Then Send("{F10}ER")
oÝ÷ ØÚ0ü¨»kzZ()à~ð+^v©j»bréZ®·µ©àæ§w§¶Ú.±ãâÅéRyªÜÚ,¢g­)à)²­±ç¦²ØZ·*.v÷öÜÛhvaÆî´ýZh²Ø­êÞë-~ëy÷«zwj|°k&®¶­s`¢b33c¶ÒVÅ6V&6cÂc2ÂsÂc2Âdddddb¤bæ÷BW'&÷"FVâ6VæBgV÷C·´cÔU"gV÷C²¶6âW6RgV÷C´b4'&b33c¶FVâgV÷C²FöòÂ'WBb33¶Ò7W&RBb33·2ÆW72Vff6Vç@
Edited by Outshynd

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  
Followers 0