Sign in to follow this  
Followers 0
lilandywandy

Help plz

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

noooo u know how i origianlly have 2 "if colors equal", how do i make a third?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

If PixelGetColor(120,777) = Dec("7b7984") Then

MouseClick("right", 75,568, 1, 0)

i wanna add a 3rd one of those

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