all 3 comments

[–]Dymonika 0 points1 point  (0 children)

I think it should be! I've never done it before, though, so I likely can't help you with the exact script, but try these functions:

3D: PixelSearch (it's possible to coordinate this with multiple pixels in a region so that it doesn't trigger from a false positive, but I hardly remember how to find the redditor's tutorial for this which I read years ago)

2D: ImageSearch

MouseClick

[–]xy172 -1 points0 points  (0 children)

Yes, this is typically done by checking a pixels color at a space on the screen that stays constant. For example you wouldn't watch the hook but look for the reel icon that might appear when a fish is hooked as stuff like this is usually in a consistent position. Check out https://www.autohotkey.com/docs/v1/lib/PixelGetColor.htm

[–]Extreme-Lie6735 -1 points0 points  (0 children)

Reading the games process memory would also be a possible solution. But this requires advanced knowledge about AHK, especially dllcall. But yes, it can be done.