;WORKS AS OF VERSION 3.3.14.5 $WDA_NONE = 0x00000000;Imposes no restrictions on where the window can be displayed. $WDA_MONITOR = 0x00000001;The window content is displayed only on a monitor. Everywhere else, the window appears with no content or may not appear at all. Local $hGUI ;Usage - Just insert either function with no arguments any time after GUICreate. Func _preventscreenshot() DllCall("user32.dll", "BOOL", "SetWindowDisplayAffinity", "HWnd", $hGUI, "DWORD", $WDA_MONITOR) EndFunc Func _allowscreenshot() DllCall("user32.dll", "BOOL", "SetWindowDisplayAffinity", "HWnd", $hGUI, "DWORD", $WDA_NONE) EndFunc