Jump to content

Draw image on desktop


oMBRa
 Share

Recommended Posts

this is what I got so far to draw icon:

#include <WinAPI.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#Include <GDIPlus.au3>


$HwND1 = _WinAPI_GetDesktopWindow()
$HDc = _WinAPI_GetDC($HwND1)
$HwND2 = _WinAPI_LoadShell32Icon(41)
_WinAPI_DrawIcon($HDc, @DesktopWidth / 2, @DesktopHeight / 2, $HwND2)
Sleep(5000)


_WinAPI_DestroyIcon($HwND2)
_WinAPI_ReleaseDC($HwND1, $HDc)

but how to draw image?

Edited by oMBra
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...