Sign in to follow this  
Followers 0
TheOrignl

Get Checkbox text?

3 posts in this topic

#1 ·  Posted (edited)

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!

Share this post


Link to post
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));

Share this post


Link to post
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!

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