icesurfer Posted July 2, 2008 Share Posted July 2, 2008 I am unable to read the status of a Radio Button on the application I am trying to control. NOTE: this is not an AutoIT GUI. The command string I am using is CODE$status = ControlCommand ( "MyCustomApp", "", "[CLASSNN:WindowsForms10.BUTTON.app.0.33c0d9d15]", "IsChecked", "" ) $status always returns 0 regardless of the state of the radio button When I use AutoIT v3 Window Info, Select the Control tab and watch the Style Property I can see that the style toggles between 0x5601000B and 0x5600000B I could not find a function that allowed me to read the 'style' of a command. Do I have a problem with my Syntax, or should this be entered as a bug / feature request? Link to comment Share on other sites More sharing options...
LarryDalooza Posted July 2, 2008 Share Posted July 2, 2008 #include <WinAPI.au3> Const $GWL_STYLE = -16 $hWnd = ControlGetHandle("MyCustomApp", "", "[CLASSNN:WindowsForms10.BUTTON.app.0.33c0d9d15]") $style = _WinAPI_GetWindowLong($hWnd, $GWL_STYLE) MsgBox(4096, "", "0x" & Hex($style, 8)) AutoIt has helped make me wealthy 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