WindowHasInputFocus ( win )

Returns true if the window has input focus, otherwise it returns false.

Example: