Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.42 KB | None | 0 0
  1. #include <GDIPlus.au3>
  2. #include <WinApi.au3>
  3.  
  4. Opt('GUIOnEventMode', 1)
  5. Opt('GUICloseOnESC', 0)
  6.  
  7. _GDIPlus_Startup()
  8.  
  9. Global $hDC_Desktop = _WinAPI_GetDC(0)
  10. Global $hGraphics = _GDIPlus_GraphicsCreateFromHDC($hDC_Desktop)
  11.  
  12. While Sleep(25)
  13.     _GDIPlus_GraphicsFillRect($hGraphics, 0,0, 300,200)
  14. WEnd
  15.  
  16. Func _Exit()
  17.     _GDIPlus_GraphicsDispose($hGraphics)
  18.     _GDIPlus_Shutdown()
  19.     _WinAPI_DeleteDC($hDC_Desktop)
  20.     Exit
  21. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement