Jump to content

.


Zenodice
 Share

Recommended Posts

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)
Link to comment
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.

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