Jump to content

Recommended Posts

Posted

Hello everbody :lmao: this is me again :P

i want to ask simple question :)

Thats only a part of my script :lmao:

If PixelGetColor(489,175) ==  0x5C8F1A Then
    MouseClick("left", 756, 510, 1, 1)
    EndIf

I want that this part of script will wait until PixelGetColor(489,175) == 0x5C8F1A and then MouseClick() :(

what should i write that it do what i want :) thanks :king:

Posted

Hello everbody :lmao: this is me again :P

i want to ask simple question :)

Thats only a part of my script :lmao:

If PixelGetColor(489,175) ==  0x5C8F1A Then
    MouseClick("left", 756, 510, 1, 1)
    EndIf

I want that this part of script will wait until PixelGetColor(489,175) == 0x5C8F1A and then MouseClick() :(

what should i write that it do what i want :) thanks :king:

soooo many smilies.... sorry, that just makes for a very bright (literally) post. try this:

While PixelGetColor(489,175) <>  0x5C8F1A Then
    Sleep(10)
WEnd
MouseClick("left", 756, 510, 1, 1)

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
×
×
  • Create New...