Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GDIPlus.au3>
- #include <WinApi.au3>
- Opt('GUIOnEventMode', 1)
- Opt('GUICloseOnESC', 0)
- _GDIPlus_Startup()
- Global $hDC_Desktop = _WinAPI_GetDC(0)
- Global $hGraphics = _GDIPlus_GraphicsCreateFromHDC($hDC_Desktop)
- While Sleep(25)
- _GDIPlus_GraphicsFillRect($hGraphics, 0,0, 300,200)
- WEnd
- Func _Exit()
- _GDIPlus_GraphicsDispose($hGraphics)
- _GDIPlus_Shutdown()
- _WinAPI_DeleteDC($hDC_Desktop)
- Exit
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement