CygnusX1 Posted April 16, 2008 Share Posted April 16, 2008 Hello All, I'm trying to use the function: $state = GUICtrlGetState(1024) to get the state of a checkbox. The function keeps returning -1. I used the AutoIt Window Info and get the Control ID but still no luck. I was able to get the handle of the control using: ControlGetHandle but now what? The Window Info says the control is a button. I read a few posts on this problem but couldn't find a solution. The control was not created with GUICtrlCreate therefore GUICtrlRead doesn't work either. Thanks for any help. Cygnus Cygnus Link to comment Share on other sites More sharing options...
Swift Posted April 16, 2008 Share Posted April 16, 2008 (edited) EDIT: I just read the end of your post... Edited April 16, 2008 by Swift Link to comment Share on other sites More sharing options...
Squirrely1 Posted April 16, 2008 Share Posted April 16, 2008 We could use another hint - is the checkbox in a webpage or in an application on the local machine, or remote machine? Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
Valuater Posted April 16, 2008 Share Posted April 16, 2008 Swift... you need to re-read the OP 8) Link to comment Share on other sites More sharing options...
CygnusX1 Posted April 16, 2008 Author Share Posted April 16, 2008 Thanks for the quick responses. GUICtrlRead does not work. I thought this only worked for controls create with GUICtrlCreate. The checkbox is on a local machine and is not a webpage. Cygnus Cygnus Link to comment Share on other sites More sharing options...
CygnusX1 Posted April 16, 2008 Author Share Posted April 16, 2008 Hey - this worked pretty well $state = ControlCommand($sOptions, "Use Monkey Wrench", 1024, "IsChecked") ConsoleWrite($state & @LF) I love answering my own questions :-) Cygnus Cygnus 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