I have a program that, on error, will stop running. When it stops running, the "start" button is enabled and the "stop" button disables. While the program is running (after clicking "start"), the "start" button disables.
My goal is to write a program that, on interval (2 minutes), checks the status of the "start" button and sends an SMTP email when the "start" button becomes enabled. Thus letting me know when the program has stopped running.
I've been able to use FindWindow to find the program but I haven't been able to locate the button, let alone have my program differentiate enabled vs. disabled.
Using Spy++, the Handle of the button is 000A0B0A. The Style of the button when it is enabled is 54000000; disabled it is 5C000000. The program, or form/window, Handle is 00050B2C.
My question is: What command, if any, can I use to check the Style of that particular button (Handle 00A0B0A)?