lilandywandy Posted July 10, 2005 Posted July 10, 2005 While 1 If PixelGetColor(120,777) = Dec("7b7984") Then MouseClick("right", 75,568, 1, 0) EndIf If PixelGetColor(97,723) = Dec("100c18") Then MouseClick("right", 75,568, 1, 0) Else MouseClick("right", 75,568, 1, 0) EndIf Wend Func mExit() Exit EndFunc sorry my stuff is a bit messy, but how can i add a third "ifcolorpixel thing" that functions the same way as the other two?
w0uter Posted July 10, 2005 Posted July 10, 2005 While 1 If PixelGetColor(120, 777) = Dec("7b7984") Then MouseClick("right", 75, 568, 1, 0) EndIf ;this seem to always click. due to the "else" statement. Is this really what you want ? ;If Not just remove the ELSE statement and the line below it. If PixelGetColor(97, 723) = Dec("100c18") Then MouseClick("right", 75, 568, 1, 0) Else MouseClick("right", 75, 568, 1, 0) EndIf ;you can add a 3d pixelsearch/getcolor here. Like: If PixelGetColor(1, 1) = 0xFF0000 Then MouseClick("right", 5, 5, 5, 5) EndIf WEnd Func mExit() Exit EndFunc;==> mExit() My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
lilandywandy Posted July 11, 2005 Author Posted July 11, 2005 noooo u know how i origianlly have 2 "if colors equal", how do i make a third?
t0ddie Posted July 11, 2005 Posted July 11, 2005 i dont get this... MouseClick("right", 75,568, 1, 0) Else MouseClick("right", 75,568, 1, 0) if the color is some color.. click in a spot. else click in the spot anyways? and that third thing you wanted, just add another if statement just like w0uter said Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
lilandywandy Posted July 11, 2005 Author Posted July 11, 2005 If PixelGetColor(120,777) = Dec("7b7984") Then MouseClick("right", 75,568, 1, 0) i wanna add a 3rd one of those
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