The IsWindowEnabled function determines whether the specified window is enabled for mouse and keyboard input. This is a simple wrapper around Win32 function.
$is_enableed = IsWindowEnabled( $hwnd );
Handle of the window to be tested
TRUE if window is enabled, FALSE otherwise