Jump to content
Sign in to follow this  
oMBRa

Draw image on desktop

Recommended Posts

oMBRa

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

Share this post


Link to post
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
Sign in to follow this  

×