Results 1 to 3 of 3
  1. #1
    DjNanos's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0

    Macro using 1 pot when its filled.

    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 is this one,

    Code:
    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, the script should hit D.


    BUT

    when it's like this, it should do nothing but wait for the green check to be there again. (check screenshots)
    Attached Thumbnails Attached Thumbnails
    potfull.png  

    potempty.png  

    Last edited by DjNanos; 01-14-2017 at 06:24 PM.

  2. #2
    kentpachi's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    60
    Reputation
    10
    Thanks
    4
    lol, for sure u didnt make this code because if youre the one who creates this you will instantly know the problem

    ur problem is very easy, just learn the ahk basics first

  3. #3
    doto26's Avatar
    Join Date
    Oct 2016
    Gender
    male
    Posts
    0
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by kentpachi View Post
    lol, for sure u didnt make this code because if youre the one who creates this you will instantly know the problem

    ur problem is very easy, just learn the ahk basics first
    Great help

Similar Threads

  1. KONAMI code. To get into server when its busy or offline
    By CaT- in forum League of Legends Guides
    Replies: 32
    Last Post: 02-20-2011, 09:01 PM
  2. Replies: 1
    Last Post: 02-20-2010, 02:41 AM
  3. Do not use tals bypass its a virus=P TUT on how to fix
    By qdnp1 in forum Combat Arms Hacks & Cheats
    Replies: 12
    Last Post: 08-30-2008, 09:07 PM
  4. Making A very nice GUIDE.EXE (will see what it is when its done)
    By obsedianpk in forum WarRock - International Hacks
    Replies: 5
    Last Post: 10-23-2007, 05:49 PM
  5. I got a error when i filled in all the things for a kwr account
    By lolliepop in forum WarRock Korea Hacks
    Replies: 6
    Last Post: 08-21-2007, 09:07 PM