Hi!
I've a script that''s using an image for ImageSearch.
How can I convert ahk to exe and include that image in exe (not a standalone file).
Thanks
Adding image to an exe
-
- Posts: 6
- Joined: 01 Jul 2022, 05:33
Re: Adding image to an exe
I'm adding this code to the end of the script. Maybe something is wrong ? it's not working
FileInstall, IMAGE.PNG, C:\Users\user\Desktop\New folderv2\test_exe.exe, 1
Thank you
FileInstall, IMAGE.PNG, C:\Users\user\Desktop\New folderv2\test_exe.exe, 1
Thank you
Re: Adding image to an exe
The destination is not your exe file. It’s not a file at all. It’s the directory where you want the file to be installed, which can be a relative path.
Re: Adding image to an exe
So do you want to include it in your executable without extracting when it is started?
;@Ahk2Exe-AddResource logo.bmp, LOGO1
If you want it extracted when the executable starts:
FileInstall, logo.bmp, %logo%, 0
A bit more context when asking a question goes a long way, and will get (better) answers.
;@Ahk2Exe-AddResource logo.bmp, LOGO1
If you want it extracted when the executable starts:
FileInstall, logo.bmp, %logo%, 0
A bit more context when asking a question goes a long way, and will get (better) answers.