Exit Posted November 28, 2020 Share Posted November 28, 2020 (edited) I want to extract a icon from shell32.dll and write it to a new file. Here my non-working script: #include <WinAPIIcons.au3> $hIcon = _WinAPI_LoadShell32Icon(71) ; the next statement writes only a hexalue (e.g. 0x01CB07C9)to the file ; how to write the icon to the file? FileWrite(@ScriptFullPath & ".ico", $hIcon) _WinAPI_DestroyIcon($hIcon) How to create the file? got it myself: #include <WinAPIGdi.au3> $hIcon = _WinAPI_LoadShell32Icon(71) _WinAPI_SaveHICONToFile(@ScriptFullPath & ".ico", $hIcon) _WinAPI_DestroyIcon($hIcon) Edited November 28, 2020 by Exit Zedna and AutoBert 1 1 App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now