Sign in to follow this  
Followers 0
netnet227

GUICtrlRead can't work for checkbox

2 posts in this topic

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)

If BitAND(GUICtrlRead("TCheckBox2"),$GUI_UNCHECKED)=$GUI_UNCHECKED Then

Debug("checking the checkbox");

GUICtrlSetState("TCheckBox2", $GUI_CHECKED)

EndIf

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



#2 ·  Posted (edited)

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

Check the ControlCommand() in the Helpfile for that.

Jos

Edited by Jos

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  
Followers 0