Ahk image scan

Stelle Fragen zur Programmierung mit Autohotkey

Moderator: jNizM

EnScapeZ
Posts: 2
Joined: 07 Jan 2021, 13:30

Ahk image scan

07 Apr 2023, 17:01

Ist es möglich mittels ahk ein image zu scannen, wo durch die betätigung einer taste die farbe ändert und dementsprechend die richtige taste gedrückt hält?
just me
Posts: 9576
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Ahk image scan

08 Apr 2023, 10:16

Moin, kannst Du für mich noch etwas genauer beschreiben, was Du machen willst?
EnScapeZ
Posts: 2
Joined: 07 Jan 2021, 13:30

Re: Ahk image scan

08 Apr 2023, 14:50

ich brauche ein script womit ich ein bild scannen kann das je nach tastendruck a oder d grün wird. Z.b das Bild geht nach links dann muss das script a drücken geht das bild auf dem bildschirm nach rechts muss das script d drücken. Bis das Image komplett grün wird. z.b so wie in dem video https://gyazo.com/77871fe1382aec5a6f3abb993901ebba
cat dog fox war
Posts: 38
Joined: 15 Mar 2023, 10:18

Re: Ahk image scan

09 Apr 2023, 03:10

I have a not advanced but simple method.

Code: Select all


exp() {
    loop {
        result := your_search_img_function()
        if (result > 0) {
            Break
        }
        Sleep, 100 ; 10 ~100ms
    }

    Switch result {
        Case 1: Send, a
        Case 2: Send, b
        ; Default:
    }
}


Return to “Ich brauche Hilfe”

Who is online

Users browsing this forum: No registered users and 68 guests