[GUI] Load a png picture or other files from dll

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
ZakMcKrackenDE
Posts: 11
Joined: 28 Sep 2022, 07:48

[GUI] Load a png picture or other files from dll

Post by ZakMcKrackenDE » 07 Oct 2022, 17:15

Hi, AHK Humans,

Case:
i use the res Hacker and create a file with 2 png inside. This 2 png i like to show on my gui.

Here is the code:

Code: Select all

#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
msgbox %A_ScriptDir%

Gui Font, s9, Segoe UI
Gui, Add, Picture,w30 h40 x10 y150 vc1 gclick1 icon1, png.dll ; Try 1
Gui, Add, Picture, x10 y10 icon1, png.dll ; Try 2
Gui, Add, Picture, , png.dll,2 ; Try 3
Gui, Add, Picture,, "C:\Users\zak\Desktop\Testing\png.dll" ; Try 4

; Nothings works
; with ico Files everything is fine, but how does it work with png, or mp3, or a docx.
; i know mp3 and docx are no graphics, but there should be a way to use resources from a own DLL File......

Gui Show, w620 h420, Window
Return

GuiEscape:
GuiClose:
    ExitApp

click1:
Return

Nothing works. What is the right way?

1. Have someone a short sample for png, mp3 or docx?

Best regards

Zak...


Post Reply

Return to “Ask for Help (v1)”