Sign in to follow this  
Followers 0
reg_hack

GUICtrlCreateRadio gets no Value

3 posts in this topic

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. ;)

Share this post


Link to post
Share on other sites



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? :">

Share this post


Link to post
Share on other sites

Thank you. That was it. Perhaps next time I should open my eyes when I'm reading the Help-Files. :-)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0