Jump to content

Help plz


Recommended Posts

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?

Link to comment
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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...