uTorrentCZ Posted March 29, 2014 Share Posted March 29, 2014 (edited) Hello. I am beginner in AutoIT. I tried create some functional scripts. Now I want to create program with GUI. I tested SampleControls.au3. The problem is that image is loaded from external file. GUICtrlCreatePic("logo.gif", 0, 0, 120, 284) I read wiki, tried google, but nothing relevant I did not find. My question: Is it possible to load image from resource of executable (new created .exe from .au3 script)? If yes, please give me link to wiki or write me, how can I do it. I can see it in recource of another programs. CONTROL "", 105, STATIC, SS_BITMAP | SS_REALSIZEIMAGE | WS_CHILD | WS_VISIBLE, 0, 0, 70, 175 Thanks. Edited March 29, 2014 by uTorrentCZ Link to comment Share on other sites More sharing options...
Zedna Posted March 29, 2014 Share Posted March 29, 2014 Look at My Resources UDF '?do=embed' frameborder='0' data-embedContent>> Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Spardacus Posted February 7, 2015 Share Posted February 7, 2015 I know this thread is old, but I'm having trouble getting things working the UDF. I made sure I have the full version of SciTE and AutoIT3Wrapper. I tested with the first sample script (as-is with a specific image defined) that sets the jpg to the resource, then sets GUICtrlCreatePic to "" and pulls with _ResourceSetImageToCtrl. Resource Hacker is showing TEST_JPG_1 in the file, but when I run the compiled exe it returns Error: Subscript used on non-accessible variable. Any idea what the issue could be? Link to comment Share on other sites More sharing options...
Spardacus Posted February 7, 2015 Share Posted February 7, 2015 Now I finally see it. Looks like there is a ResourcesEx now? I'll take a gander Link to comment Share on other sites More sharing options...
Zedna Posted February 10, 2015 Share Posted February 10, 2015 (edited) Yes. If you use latest version of AutoIt then use updated ResourcesEx UDF (link is in my signature and also at end of my original topic/thread). My original Resources UDF works with older versions of AutoIt and is not updated/improved. Edited February 10, 2015 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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