GetWindowStatus
Check if a window is in the foreground
GetWindowStatus(): boolean
Example
Don't run rotation in the background
if not GetWindowStatus() then return end
Check if a window is in the foreground
GetWindowStatus(): boolean
Example
Don't run rotation in the background
if not GetWindowStatus() then return end