Jump to content
Sign in to follow this  
ageofchaos

Help with pixelsearch

Recommended Posts

ageofchaos

Here's the code; it's just used as a test to work out pixelsearch:

CODE

While 1

PixelSearch(333, 246, 1050, 690, 0xFF0000)

If @error Then

MouseClick("right")

sleep(1000)

ElseIf not @error Then

tooltip("Not Found")

endIf

Wend

I put my desktop's background as red, and when I run my script, it only shows the "Not Found" tooltip. When I switch my background to white and run the script, it right-clicks. Have I input the colorcode wrong? I looked around posts, and I've seen them all have the same colorcode format as I used.

Share this post


Link to post
Share on other sites
ageofchaos

Here's the code; it's just used as a test to work out pixelsearch:

CODE

While 1

PixelSearch(333, 246, 1050, 690, 0xFF0000)

If not @error Then

MouseClick("right")

sleep(1000)

ElseIf @error Then

tooltip("Not Found")

endIf

Wend

I put my desktop's background as red, and when I run my script, it only shows the "Not Found" tooltip. When I switch my background to white and run the script, it right-clicks. Have I input the colorcode wrong? I looked around posts, and I've seen them all have the same colorcode format as I used.

Rofl, I'm retarded. @error displays if it DOESN'T see the color. Fixed. LOL. /facepalm

Edited by ageofchaos

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.