Sign in to follow this  
Followers 0
Zenodice

.

6 posts in this topic

#1 ·  Posted (edited)

.

Edited by Zenodice

Share this post


Link to post
Share on other sites



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

#3 ·  Posted (edited)

.

Edited by Zenodice

Share this post


Link to post
Share on other sites

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

#5 ·  Posted (edited)

.

Edited by Zenodice

Share this post


Link to post
Share on other sites

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  
Followers 0