PartyPooper Posted June 11, 2011 Share 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") Link to comment Share on other sites More sharing options...
Zedna Posted June 11, 2011 Share 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 Link to comment Share on other sites More sharing options...
UEZ Posted June 11, 2011 Share 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
PartyPooper Posted June 12, 2011 Author Share Posted June 12, 2011 Thanks Zedna, I'll check them out. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now