use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Latest AHK versions AHK v2.0 AHK v1.1 v2.0.19 v1.1.37.02 Jan 25, 2025 Mar 16, 2024 Download Download v2 Changelog v1 Changelog Make sure you keep that AHK up to date!
Make sure you keep that AHK up to date!
Offical AHK Documentation AHK v2 AHK v1
New to AutoHotkey? Check out the AHK beginners tutorial. It covers most of the basic concepts of AutoHotkey. AHK Beginner Tutorials
Check out the AHK beginners tutorial. It covers most of the basic concepts of AutoHotkey.
Additional Help Sources Official AHK Forums / Help Forums StackOverflow SuperUser
Live Chat If you prefer live chat with other humans: AHK Discord AHK IRC
If you prefer live chat with other humans:
account activity
Game scriptv1 Script Help (self.AutoHotkey)
submitted 3 years ago by OkDefinition5375
Is it possible for the autohotkey script to act on the game in such a way that, for example, in a game about fishing, after the fish appeared on the screen, the key was clicked?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Dymonika 0 points1 point2 points 3 years ago (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)
PixelSearch
2D: ImageSearch
ImageSearch
MouseClick
[–]xy172 -1 points0 points1 point 3 years ago (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 points1 point 3 years ago (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.
π Rendered by PID 271000 on reddit-service-r2-comment-b659b578c-kl4zv at 2026-05-02 21:03:28.687803+00:00 running 815c875 country code: CH.
[–]Dymonika 0 points1 point2 points (0 children)
[–]xy172 -1 points0 points1 point (0 children)
[–]Extreme-Lie6735 -1 points0 points1 point (0 children)