imagafx
asked on
Cheching a button is enable or not and click on them
I am writing a program to control other applications. I know how to get the handles to the top processes and the buttons in the applications. The question is how to determine whether the the buttons in other applications are enabled or not and if they are enabled I want to simulate a "click" on them (this is less important than finding whether it's enabled or not). Thanks for your help.
Having the button handle you can use IsWindowEnabled function.
ASKER
Alex, thanks for your help. And do you know to simulate a "click" on a button given the handle of that button? It's part of the question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Alex, thanks a lot.