Hi All,

I have a popup window, which shows up after double clicking an installer. This window has 3 buttons: Back, Next & cancel. Using win32api I am able to get the window handles for all three buttons. I need to find out which of the buttons is enabled or disabled.
I looked around in the MSDN library &found some api’s which might return the button status but not sure how to access these API’s using python ctypes.

Any help is greatly appreciated.

Thanks

Found the answer:
ctypes.windll.user32.IsWindowEnabled(hwnd)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.