Jump to content

GUICtrlRead can't work for checkbox


 Share

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)

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?

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...