Jump to content
Sign in to follow this  

GUICtrlRead can't work for checkbox

Recommended Posts


I have an external program, i tried to use GUICtrlRead to get its checkbox state:

Debug("aaaaaaaaaaa:" & GuiCtrlGetState("TCheckBox2"))

Debug("bbbbbbbbbbb:" & $GUI_UNCHECKED)

Debug("ccccccccccc:" & $GUI_CHECKED)


Debug("checking the checkbox");

GUICtrlSetState("TCheckBox2", $GUI_CHECKED)


but i found whatever the state it is, it always get 0 which is not right.

i checked the forumn, most of the post is about the "autoit created" control.

i believe autoit can read EXTERNAL control as well, but how?

Share this post

Link to post
Share on other sites

Looks like you are trying to set/read the status of an external GUIs Checkbox control?

Check the ControlCommand() in the Helpfile for that.


Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     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