Jump to content

Help with pixelsearch


Recommended Posts

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.

Link to comment
Share on other sites

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
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...