AddResource and how to access it?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Rollo007
Posts: 17
Joined: 24 Mar 2021, 08:23

Re: AddResource and how to access it?

17 May 2021, 16:32

I thought this too, but since I'v been using this, windows refuses to delete the file which was used to load the image.
So I'm seeking for the problem and thought maybe I have to free it separately. Will go on for some try.
teadrinker
Posts: 4344
Joined: 29 Mar 2015, 09:41
Contact:

Re: AddResource and how to access it?

17 May 2021, 16:35

You can use this way (an asterisk between the colon and handle):

Code: Select all

Gui, Add, Pic,, HBITMAP:*%hBitmap%
DllCall("DeleteObject", "Ptr", hBitmap)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], mikeyww, Rohwedder, vposud and 336 guests