Jump to content

query state of a control in GUI of external application


Recommended Posts

Hey all.  I want to know if there is a way to query the state of a control in the GUI of an external application.  Like, for example, if a checkbox control in an external GUI is checked or not.  Looking at the available functions under "Window management" functions (and the control functions subsection), I am not seeing any built in functionality that would allow for this.  Is this the case, or is there some way to accomplish this that is just not a built in function?  Thanks.

Link to post
Share on other sites

If you need much more options than ControlCommand, you can use SendMessage directly to the control.  To get a list of all the possibilities see :

https://docs.microsoft.com/en-us/windows/win32/controls/window-controls

Look under Control Library for a detailed list of all available messages.  Remember that some messages cannot be sent between threads (mostly when trying to set some attributes), but reading should not be a problem.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...