What should I use

Get help with using AutoHotkey and its commands and hotkeys
Posts: 1
Joined: 28 Apr 2020, 03:15

What should I use

28 Apr 2020, 03:26

Hello guys,
I have a problem.
On the picture u can see 3 lines. In these 3 lines there are 3 different keys that falling down from the top.
I need script whats gonna press one of the 3 keys whats gonna fall right in that moment.
I wish if anyone could help me how to do it OR... if u feel like its easy DM me and I make u price.

jhdd.PNG (100.68 KiB) Viewed 269 times
User avatar
Posts: 224
Joined: 07 May 2017, 08:26

Re: What should I use

28 Apr 2020, 03:31

2 choices.
- Memory reading

Autohotkey is lacking in OCR scripts, so;
Memory reading is the easiest, but it's still far too difficult for a novice.

I'm just giving suggestions. I'm not interested in doing any paid work.
User avatar
Posts: 707
Joined: 18 Apr 2014, 19:05
GitHub: Chunjee

Re: What should I use

28 Apr 2020, 05:34

You could imagesearch for partial of full letter matches in the selected areas. The trouble would be that iamgesearch takes more than 0 time so getting it to perform all necessary checks done before the window of opportunity passes could be a challenge.

For clarity you would just have a pre-captured picture of each letter/color combination. But if there are 24 letters searching each one would take too long.

FindText or graphicsearch.ahk may be valid alternatives as the screen can be searched for multiple images without re-capturing each time. These however may require some ahk practice.
Last edited by Chunjee on 28 Apr 2020, 14:24, edited 1 time in total.
User avatar
Posts: 6594
Joined: 21 Dec 2014, 02:44

Re: What should I use

28 Apr 2020, 07:38

I don’t know how fast they are falling, but OCR might be too slow. ImageSearch would be too slow to cycle through all the possibilities if it has less than a couple seconds to act, as Chunjee suggested. Perhaps it would be fast enough with some multi-threading. You could either use multiple scripts with each one only checking a handful of letters or use AHK_H’s multi-threading capabilities.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], mikeyww, Recrix, takenbythedesert and 45 guests