vendredi 22 avril 2016

detect visual/audio cues - gaming bot

There's a game I play that can be completed with a fairly consistent pattern. I was wondering if there's a programming language that can detect on-screen images or (maybe) hear sound cues, then run a new line of code based on it. This example isn't any particular language, but...

if <img> onscreen=1:
    click(x:42,y:286,duration:0.01);
if <sound cue> detect=1:
    keypress(key:a,duration:0.25);

Is there a language that can do this?

Aucun commentaire:

Enregistrer un commentaire