Sign in to follow this  
Followers 0
chenxu

Looking for another way, the effective way to detect whether a button is enabled/disabled

5 posts in this topic

I'm playing a game, and I need to do something when a button is enabled/disabled. ControlCommand failed to tell me the button is enabled or not. Is there any effective way to detect the status of some not standard button? Please give me some example. Great thanks.

Share this post


Link to post
Share on other sites



I can say only that it is possible to get status of anything, if *this* changes its looking even a bit.

You can simply read the color of certain pixel on the button -- so know exactly its state.

I only do not know is this suitable for you.

Share this post


Link to post
Share on other sites

I'm playing a game, and I need to do something when a button is enabled/disabled. ControlCommand failed to tell me the button is enabled or not. Is there any effective way to detect the status of some not standard button? Please give me some example. Great thanks.

Have you tried using AutoIT WIndow Info tool and see the diffrences with it when checkbox is on or off ?


My little company: Evotec (PL version: Evotec)

Share this post


Link to post
Share on other sites

In some games, when a button is disabled, the icon changes color, maybe pixel detect to see if the icon is the available color?

Share this post


Link to post
Share on other sites

Have you tried using AutoIT WIndow Info tool and see the diffrences with it when checkbox is on or off ?

In some games, when a button is disabled, the icon changes color, maybe pixel detect to see if the icon is the available color?

I've tried, and I can exactly get the status of the button, but I'm not satisfied, because the window must be activated before using pixelgetcolor, so, while running the script, I has to stop everything I'm doing.

And, I also tried using AutoIT WIndow Info tool and see the diffrences, but, what a pity, it can not tell me the difference while the status of the button is switching...

Share this post


Link to post
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
Sign in to follow this  
Followers 0