Jump to content

Get Checkbox text?


TheOrignl
 Share

Recommended Posts

I've been searching the AutoIt help and these forums for quite sometime and can't find how to do something I'm sure is very simple. I'm trying to read the text portion of a Checkbox so I can use it in an if block. Would someone point me in the right direction here? :)

Edited by TheOrignl

Managing the complexities of our daily lives is always our own responsibility; Allowing God to help us and accepting His guidance is our choice. The best choice!

Link to comment
Share on other sites

I've been searching the AutoIt help and these forums for quite sometime and can't find how to do something I'm sure is very simple. I'm trying to read the text portion of a Checkbox so I can use it in an if block. Would someone point me in the right direction here? :)

This works.
Local $checkCN
GUICreate("My GUI Checkbox") 

$checkCN = GUICtrlCreateCheckbox("CHECKBOX 1", 10, 10, 120, 20)

GUISetState() 

MsgBox(0, "", GUICtrlRead($checkCN, 1));
Link to comment
Share on other sites

This works.

Local $checkCN
GUICreate("My GUI Checkbox") 

$checkCN = GUICtrlCreateCheckbox("CHECKBOX 1", 10, 10, 120, 20)

GUISetState() 

MsgBox(0, "", GUICtrlRead($checkCN, 1));
Thank you Malkey. Must have come back to that function half a dozen times and never found that remark. Thanks again.

Managing the complexities of our daily lives is always our own responsibility; Allowing God to help us and accepting His guidance is our choice. The best choice!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...