#Include <ScreenCapture.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
_GDIPlus_Startup()
$HBITMAP = _ScreenCapture_Capture("", 0, 0, @DesktopWidth - 2, @DesktopHeight - 2, 0)
$hGUI = GUICreate("Full Screen", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP)
GUISetState(@SW_SHOW, $hGUI)
$hGraphicBg = _GDIPlus_GraphicsCreateFromHWND($hGUI)
$hBmp = _GDIPlus_BitmapCreateFromHBITMAP($HBITMAP)
$hBmpBak = _GDIPlus_BitmapCreateFromHBITMAP($HBITMAP)
_GDIPlus_GraphicsDrawImage($hGraphicBg, $hBmp, 0, 0)
$hGraphicBgVirtual = _GDIPlus_ImageGetGraphicsContext($hBmp)
_WinAPI_DeleteObject($HBITMAP)
While True
If GUIGetMsg() == $GUI_EVENT_CLOSE Then ExitLoop
WEnd
_GDIPlus_GraphicsDispose($hGraphicBg)
_GDIPlus_GraphicsDispose($hGraphicBgVirtual)
_GDIPlus_Shutdown()
GUIDelete($hGUI)
|