AHK for QTE game

Ask gaming related questions
kxzus
Posts: 1
Joined: 05 Feb 2024, 09:11

AHK for QTE game

05 Feb 2024, 09:19

basically the game is click to fight, and there is a minigame when mobs attack u, i want to make a script that press SPACE when the line crosses yellow bar, the yellow bar can be smaller though
Attachments
Screenshot 2024-02-05 151606.png
Screenshot 2024-02-05 151606.png (185.27 KiB) Viewed 288 times
User avatar
boiler
Posts: 17242
Joined: 21 Dec 2014, 02:44

Re: AHK for QTE game

05 Feb 2024, 15:02

It should be relatively easy to script by using ImageSearch to look for a reference image of a strip of vertical white pixels next to vertical yellow pixels. It might require using the *Trans option to have it skip over the pixels at the transition between white and yellow since they might be blended and difficult to match. Then you're just looking for two sets colors within close proximity and not worrying about matching the blended pixels.

Having said that, depending on how fast the bar is moving, AHK might not be fast enough to find it unless you can wait for it to cross many times until it happens to catch it just at the right moment. I suspect it's moving too fast to reliably find the first time it crosses.

Return to “Gaming”

Who is online

Users browsing this forum: Patrycy and 6 guests