Jump to content

Pixelsearch error


Recommended Posts

I am trying to get a certain bot running, and it needs to check for a certain color on a pixel, and then do a response if that color changes.

the problem is, it has to wait until that color is met, and that could go upto a few minutes, but now I get all the time Error Allocating Memory messages.

here´s my code so far:

CODE
$checksum = PixelChecksum(433,699, 430,700); checks the color

While $checksum = PixelChecksum(433,699, 430,700); if not changed, then

Sleep(50); wait

WEnd

MouseClick ( "left" , 491, 965 , 1)

Send("and thats 8, please press accept")

Send("{ENTER}")

I think I am missing something here, but i cant figure out what...

Link to comment
Share on other sites

  • Moderators

You wouldn't get that error with what you are showing.

You would get that error more than likely if you had it in a function that was calling itself over and over.

It's always best to post your script rather than what you "think" might be the issue, sometimes it's not that at all.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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