aagnone3 Posted January 24, 2014 Share Posted January 24, 2014 I am trying to get the state of a checkbox on a pre-existing GUI. I have already tried GUICtrlRead(), but the return is 0, regardless of the checkbox state. Does anyone know a way to accomplish this? Please note that this is for a generic, pre-existing GUI that is NOT created through AutoIT. Link to comment Share on other sites More sharing options...
jdelaney Posted January 24, 2014 Share Posted January 24, 2014 Add the code you are using Add the output of the 'control' tab, when targeting the checkbox throught the "autoit window info tool) The actual funciton you would use is: ControlCommand "ischecked" option IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
l3ill Posted January 24, 2014 Share Posted January 24, 2014 That is if you are lucky enough to get some info about the box from the info tool.. if not your stuck with PixelSearch My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
jdelaney Posted January 24, 2014 Share Posted January 24, 2014 Yeah, some checkboxes in listviews can't be seen by autoit. If it's a standalone checkbox, you should be fine. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. 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