Checks to see if a specified window exists and is currently active.
||Returns the handle to the window if it is active.
||Returns 0 otherwise.
WinExists, WinWait, WinWaitActive, WinWaitClose, WinWaitNotActive, WinTitleMatchMode (Option)
If WinActive("[CLASS:Notepad]") Then
MsgBox(0, "", "Window was active")