Sign in to follow this  
Followers 0
PartyPooper

How do I use #AutoIt3Wrapper_Res_File_Add=

4 posts in this topic

As the topic title states, how do I use #AutoIt3Wrapper_Res_File_Add= to include an image in my compiled exe and display it using the GUICtrlCreatePic keyword?

I don't wish to use FileInstall() because I don't want to have to install the JPG picture on the users disk, nor do I wish to be forced to include Zedna's complicated resource.au3 for something as simple as displaying a JPG on a GUI.

I was hoping it would be as simple as the following but it didn't work:

#AutoIt3Wrapper_Res_File_Add=..\Pictures\myfantastic.jpg

...

GUICtrlCreatePic("", 10, 30)

GUICtrlSetImage(-1, @ScriptFullPath, "myfantastic.jpg")

Share this post


Link to post
Share on other sites



For such simple case you don't need to use whole my Resources UDF (it's general purpose for more type of uses).

Just use some simple API calls from it.

In this your example:

WinAPI_LoadImage() + GUICtrlSendMsg+STM_SETIMAGE

There are examples on this forum for this.

Share this post


Link to post
Share on other sites

To load an image from a binary string search for "load_bmp_from_mem".

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Thanks Zedna, I'll check them out.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0