Jump to content

Recommended Posts

Posted (edited)

Hey all! I'm new to this and after hours of searching, changing scripts etc. I've given up and I'm asking for your help.
So what I'm trying to do is this.
At a specific pixel location I need to send a key when the color changes. If the color doesn't change, then, ahk does nothing (but remains active in case the color changes).

Closest script I've made so far (using autohotkey) is this one,
 

F1::
Loop
{
PixelSearch, Px, Py, 121, 121, 915, 915, 231615, 3, Fast
if ErrorLevel = 0
    {
    SendInput {D}
    }
}

But it seems that this script all it does is just press the key (d in that case) again n again no matter the color is there or not..



So in details what i want is this.
When this flask is green like this, should hit D.
HaOzy5S.png

BUT

when it's like this, it should do nothing but wait for it to be green again and loop the prev step.
0I57r2V.png

Edited by DjNanos

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..