PartyPooper 0 Posted June 11, 2011 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
Zedna 277 Posted June 11, 2011 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. Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
UEZ 1,272 Posted June 11, 2011 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
PartyPooper 0 Posted June 12, 2011 Thanks Zedna, I'll check them out. Share this post Link to post Share on other sites