Jump to content

GUICtrlCreateRadio gets no Value

Recommended Posts

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

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...