Jump to content

Get color in an inactive window


Recommended Posts

I want help to get the color in an INACTIVE window. This is the code(my first try):

Func AUTOHEAL()
    BlockInput(1);Blocking input
    $HWt=ControlGetHandle("Game","","");get the handle
    $minhpcolor=PixelGetColor($X,$Y,$HWt);Want to get the color
    If $minhpcolor<>$color_hitpoint Then;If the color have been changed...
        If $Checkbox1="Use hotkey" Then
            
        Else
            ControlSend("Game","","",GUICtrlRead($Input1))
        EndIf
    Else
    EndIf
    BlockInput(0); Unblock input
EndFunc

I want the program to check if the Color at a specific coordinate in an Inactive window have changed. If it has.. Then it shall send $Input1 in the same window. I dont know if this is possible but I also want it to do this if the window is minimized.

muttley

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...