Capturing active window in Mac OS

There is known issue in Mac OS about grabbing active window, this issue is disabled by default for most Mac OS version, because of security reasons. To activate this Feature please go to "System Preferences" then
"Universal Access"
and check the checkbox "Enable access for assistive devices". Check the screenshot below. This will enable Ctrl+Cmd+W (Capture active window) feature