Sign in to follow this  
Followers 0
mike1212

Question

3 posts in this topic

Hello

I have the following code in a script.

$color = PixelGetColor(591,559)
If $color = 12030226 Then
mouseClick("Left",591,559)
Endif

It works fine, however, as you know

if the pixel color is 12030226 then it will mouseclick at 591,559.

What I am trying to do is reverse the command, to read

" if not 12030226 then mouseclick the location".

Is there away to make a "If not" command? :)

Thank You :D

Share this post


Link to post
Share on other sites



yes quite simple =)

$color = PixelGetColor(591,559)
If $color <> 12030226 Then
mouseClick("Left",591,559)
Endif

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

yes quite simple =)

$color = PixelGetColor(591,559)
If $color <> 12030226 Then
mouseClick("Left",591,559)
Endif

<{POST_SNAPBACK}>

Hello Burrup

The code question you answered for me, works great. :)

Thank You

Mike1212

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