IsProcessFocused

isprocessfocused [<process name>]

Checks whether a specific process is focused in windows or not.

Parameters:

  1. The name of the process.

Returns: True if the process is focused. False if the proces is not focused.