Jump to content
Sign in to follow this  
Zenodice

.

Recommended Posts

jvanegmond

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)

Share this post


Link to post
Share on other sites
jvanegmond

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.

Share this post


Link to post
Share on other sites
jvanegmond

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.

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.