Sign in to follow this  
Followers 0
legend

check if control is disabled

3 posts in this topic

Hi. How would I check for if a control, ex. a checkbox, is disabled?

this: just checks for if the checkbox is checked or not, I want to check for if it's disabled :)

If GUICtrlRead($test) = 1 Then

Share this post


Link to post
Share on other sites



http://www.autoitscript.com/autoit3/docs/functions/GUICtrlGetState.htm

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

For your own controls.

BitAND(GUICtrlGetState($iCtrlId),$GUI_DISABLE)

For controls in other windows

ControlCommand($hWnd,"","","IsEnabled", "")

Edited by KaFu

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