XchokeholdX Posted February 23, 2007 Share Posted February 23, 2007 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 More sharing options...
Moderators SmOke_N Posted February 23, 2007 Moderators Share Posted February 23, 2007 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 More sharing options...
XchokeholdX Posted February 23, 2007 Author Share Posted February 23, 2007 (edited) yeah, your right, i had a running script in the beginning that caused the error. thanks for a fast reply though. Edited February 23, 2007 by XchokeholdX Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now