Jump to content
Sign in to follow this  

Setting the value of a checkbox

Recommended Posts


Forgive my stupidity, and if the answer is in the manual or the forum anywhere, I guess I don't know how to search very well. Anyway.....

I am working on a script that writes and reads a lot of info from the registry, and some of that info is being created by a checkbox control. Is it possible to read a value from the registry (1 or 4) and have the checkbox unchecked or checked by default when the GUI is active?

Thanx in advance!

Share this post

Link to post
Share on other sites

Yes, no problem... you can set the CheckBox with GUICtrlSetState() like e.g:

$h_Beta = GUICtrlCreateCheckbox("Create Beta Definitions", 10, 50, 150, 20)
GUICtrlSetState(-1, $GUI_CHECKED)

Just add a test around the GUICtrlSetState() and make it dependant on the Registry value....

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.