jdnx Posted January 6, 2013 Share Posted January 6, 2013 Hi,everyone I want to use autoit to get the check state of checkbox in .net 2.0 application, I first tried controlcommand with Ischeck parametre but it did not work , I searched online and find following addressI think this author's analysis is reasonable, so I tried his solution, my platform is win7 x86 , autoit version is 3.3.4, but it didn't work, I used his coordinate [8,6] [8,11], no matter I check or uncheck , it always returns no check,actually the baseline and checkmark return is the same, so I tried other coordinate to test and find with certain coordinate , it can return different result , but when I uncheck the checkbox , it returns the same result ,so it also failsIs it because win7 did not support this solution ? can anybody help ,Thanks! Link to comment Share on other sites More sharing options...
dmob Posted January 27, 2013 Share Posted January 27, 2013 If you still need help try Link to comment Share on other sites More sharing options...
jdnx Posted January 29, 2013 Author Share Posted January 29, 2013 If you still need help try Great thanksbut I don't think the link you mentioned can solve my problem. I can get the control because I can use ControlClick to click the checkbox,I just can't get the check state of the checkbox,anyway,thanks for your reply. Link to comment Share on other sites More sharing options...
ilynaf Posted June 12, 2014 Share Posted June 12, 2014 (edited) Well, running into the same problem with no luck on finding a workaround. Even tried GUICtrlRead(), it always returns 0 which indicates a failure BitAND(GUICtrlRead($hWnd), $GUI_CHECKED) = $GUI_CHECKED The checkbox class is WindowsForms10.BUTTON.app.0.16983f6_r68_ad1 Edited June 12, 2014 by ilynaf Link to comment Share on other sites More sharing options...
LarsJ Posted June 12, 2014 Share Posted June 12, 2014 This can be done with the UI Automation framework. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions 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