Jump to content

Recommended Posts

Posted

Here a semi transparency version:

#include <GDIPlus.au3>

_GDIPlus_Startup()

$sFile = "Shell32.dll"
$iIndex = 4
$aRet = DllCall("shell32", "long", "ExtractAssociatedIcon", "int", 0, "str", $sFile, "int*", $iIndex)
$hIcon = $aRet[0]
$aRet = DllCall($ghGDIPDll, "int", "GdipCreateBitmapFromHICON", "ptr", $hIcon,  "int*", 0)
$hBitmap = $aRet[2]
_WinAPI_DestroyIcon($hIcon)
_GDIPlus_ImageSaveToFile($hBitmap, @ScriptDir & "Test.png")
_GDIPlus_BitmapDispose($hBitmap)
_GDIPlus_Shutdown()

ShellExecute(@ScriptDir & "Test.png")

Exit

Br,

UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

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
  • Recently Browsing   0 members

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