reg_hack Posted September 19, 2005 Share Posted September 19, 2005 Hi @ all, I've just began to code with AutoIT. I use the Help-file which you can download for the syntax. So I wrote: $set = GUICtrlCreateRadio ("radio1", 50, 75, 200, 20) $set = GUICtrlCreateRadio ("radio2" , 50,100, 200, 20) Since now I thought that like this way I can give $set the value of the Control-ID of the RADIO which I mark in the running Programm. But my Script don't cares which Radio is marked. It everytime has the value of the second. If i give handish a value to $set it works. Please, can somebody help me. Link to comment Share on other sites More sharing options...
jpm Posted September 19, 2005 Share Posted September 19, 2005 GUICtrlCreateRadio return and ControlId not the value of the control, so your second statement is overriding the first one and you will not have a way to read the value. Perhaps you don't care so to read the value of the control you need to use GUICtrlRead as stated in the doc. Did you read it? :"> Link to comment Share on other sites More sharing options...
reg_hack Posted September 20, 2005 Author Share Posted September 20, 2005 Thank you. That was it. Perhaps next time I should open my eyes when I'm reading the Help-Files. :-) 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