Kiai Posted March 24, 2009 Share Posted March 24, 2009 I posted this on the wrong forum by mistake and did finally, with help, find the answer. I had trouble figuring this out using the SciTE help file so here is the post, and the solution. I have 3 small graphics that I am using in a gui. I have them in the script directory when I compile and have them included here: #AutoIt3Wrapper_Res_File_Add=clipboard.bmp #AutoIt3Wrapper_Res_File_Add=red-stop.gif #AutoIt3Wrapper_Res_File_Add=yellow-stop.gif In the program, I am trying to figure out how to find them. GUICtrlSetImage($alert_pic,@ScriptFullPath&'\yellow-stop.gif') GUICtrlSetImage($alert_pic,'yellow-stop.gif') don't work. I have tried variations on the script path, just the file name, the absolute path in both the include statement and referencing the file later in the program. I'm sure the answer is obvious but I can't figure it out. How do I include and reference a file? Thanks. Problem -- didn't understand the syntax for the Res_File_Add. Here is what works in the script: #AutoIt3Wrapper_Res_File_Add=C:\Users\Me\Documents\Pics\clipboard.gif,rcdata,clipboard.gif #AutoIt3Wrapper_Res_File_Add=C:\Users\Me\Documents\Pics\red-stop.gif, rcdata,yellow-stop.gif #AutoIt3Wrapper_Res_File_Add=C:\Users\Me\Documents\Pics\yellow-stop.gif, rcdata,yellow-stop.gif ..... GUICtrlSetImage($alert_pic,'red-stop.gif') (Same effect) Using the wrapper, enter the files to include as: C:\Users\Me\Documents\Pics\clipboard.gif,rcdata,clipboard.gif C:\Users\Me\Documents\Pics\red-stop.gif, rcdata,yellow-stop.gif C:\Users\Me\Documents\Pics\yellow-stop.gif, rcdata,yellow-stop.gif Simple to the experienced folks but the Scite help file doesn't, as far as I could find, explain clearly for a novice what to do with Section and Resname. #AutoIt3Wrapper_Res_File_Add= ; Filename[,Section [,ResName]] to be added. Thanks to everyone for their help with this and other issues. Link to comment Share on other sites More sharing options...
jvanegmond Posted March 24, 2009 Share Posted March 24, 2009 Try FileInstall function. github.com/jvanegmond 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