Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GDIPlus.au3>
- #include <WinAPI.au3>
- $hWnd=GUICreate("", 400, 400, -1, -1, -1, 0x00080000)
- GUISetState()
- _GDIPlus_Startup()
- $hBrush=_GDIPlus_BrushCreateSolid(0xFFFFAAFF)
- $hGraphics=_GDIPlus_GraphicsCreateFromHWND($hWnd)
- _GDIPlus_GraphicsFillRect($hGraphics, 200, 200, 100, 100, $hBrush)
- While True
- _GDIPlus_GraphicsFillRect($hGraphics, 200, 200, 100, 100, $hBrush)
- _WinAPI_SetLayeredWindowAttributes($hWnd, 0xFFAAFF, 255)
- Switch GUIGetMsg()
- Case -3
- _GDIPlus_BrushDispose($hBrush)
- _GDIPlus_GraphicsDispose($hGraphics)
- _GDIPlus_Shutdown()
- Exit
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement