Zenodice Posted September 16, 2009 Share Posted September 16, 2009 (edited) . Edited September 9, 2017 by Zenodice Link to comment Share on other sites More sharing options...
jvanegmond Posted September 16, 2009 Share Posted September 16, 2009 It would have been easier if you wrote down the line number on which it crashes, that helps a lot when searching. Anyway, this can potentially go wrong because you never check for @error: $bobber = PixelSearch($searchL,$searchT,$searchR,$searchB, $color,10) ; Look for user selected color in a large area in the center of the screen ; Some stuff MouseMove($bobber[0], $bobber[1]) ; Move the mouse to the bobber (so the user knows what this script is looking at, and hopefully doesn't move the mouse) github.com/jvanegmond Link to comment Share on other sites More sharing options...
Zenodice Posted September 16, 2009 Author Share Posted September 16, 2009 (edited) . Edited September 9, 2017 by Zenodice Link to comment Share on other sites More sharing options...
jvanegmond Posted September 16, 2009 Share Posted September 16, 2009 Let's focus on one problem at a time, and let's start with the one where we know specifically what's going wrong: The array subscript exceeded error. I asked you for a line number, so post one. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Zenodice Posted September 16, 2009 Author Share Posted September 16, 2009 (edited) . Edited September 9, 2017 by Zenodice Link to comment Share on other sites More sharing options...
jvanegmond Posted September 17, 2009 Share Posted September 17, 2009 I actually fixed it, it seems that lack of error trapping was one of the issues and the other was too much variation in the color for the pixel search to find the desired target.Thanks for your help Manadar.As I had guessed.. : )I've built my fair share of fishing bots and other game bots to know about what can typically go wrong. github.com/jvanegmond 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