chenxu Posted December 27, 2007 Share Posted December 27, 2007 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. Link to comment Share on other sites More sharing options...
Greenya Posted December 27, 2007 Share Posted December 27, 2007 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. Link to comment Share on other sites More sharing options...
MadBoy Posted December 27, 2007 Share Posted December 27, 2007 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) Link to comment Share on other sites More sharing options...
Shifthappens Posted December 27, 2007 Share Posted December 27, 2007 In some games, when a button is disabled, the icon changes color, maybe pixel detect to see if the icon is the available color? Link to comment Share on other sites More sharing options...
chenxu Posted December 28, 2007 Author Share Posted December 28, 2007 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... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now