nacerbaaziz Posted August 3, 2017 Share Posted August 3, 2017 Hi guys I have an inquiry please I want an example of how to add an icon file to the compiled autoit file and how to use it in GUICtrlCreateIcon Preferably in a separate list within the resourceFor example myIcons I hope my request is clear and I hope you will help me solve this problem Because I found an example in the help files but I did not understand the method well Link to comment Share on other sites More sharing options...
nacerbaaziz Posted August 3, 2017 Author Share Posted August 3, 2017 I have tried the ResourcesEx.au3 file It succeeded but the problem is that the icons are set in rt_icon I want them to be in a completely independent list of major icons Link to comment Share on other sites More sharing options...
nacerbaaziz Posted August 3, 2017 Author Share Posted August 3, 2017 this is the resources udf file resources udf Link to comment Share on other sites More sharing options...
Xandy Posted August 3, 2017 Share Posted August 3, 2017 (edited) [Dupe post] [snip] Edited August 3, 2017 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
Xandy Posted August 3, 2017 Share Posted August 3, 2017 (edited) To use custom icon on compiled exe, from scite with target script open, press Ctrl + F7 to open compile options.  Roughly the fifth option down is Icon.  Use the ... (browse) button and navigate to the .ico file.  Then press compile, the resulting exe will have the specified icon.  I am also pretty sure all the GUIs will have the specified icon instead of the default AutoIt icon after the compile. Edited August 3, 2017 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
nacerbaaziz Posted August 3, 2017 Author Share Posted August 3, 2017 I want to use the icon that was added in GUICtrlCreateIcon Does this work? Link to comment Share on other sites More sharing options...
Xandy Posted August 3, 2017 Share Posted August 3, 2017 I am not certain.  Maybe my method isn't what you want. Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
Confuzzled Posted August 14, 2017 Share Posted August 14, 2017 Â Put this at the top of your source code - these are the parameters that are written if you follow the post that Xandy wrote. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****#AutoIt3Wrapper_icon=YourIconFile.ico #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Is this what you wanted? Link to comment Share on other sites More sharing options...
nacerbaaziz Posted August 14, 2017 Author Share Posted August 14, 2017 No unfortunately I need to add a multiple icons to the exe file and use it in a GUI like GUICreateIcon Greetings and sorry for the late reply Link to comment Share on other sites More sharing options...
Developers Jos Posted August 14, 2017 Developers Share Posted August 14, 2017 And why wouldn't you be able to add multiple ico file that way? Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
nacerbaaziz Posted August 14, 2017 Author Share Posted August 14, 2017 Dear, for example, I found this code #AutoIt3Wrapper_Res_File_Add=icons\volume+.ico, playerIcons, up, 0 I want to use it to create the icon in the GUI e.g : GUICtrlCreateIcon() I hope this is clear Link to comment Share on other sites More sharing options...
Trong Posted August 14, 2017 Share Posted August 14, 2017 use ResourcesEX.au3 ! Example: ExampleIconOnGUI.zip Regards,  Link to comment Share on other sites More sharing options...
Developers Jos Posted August 14, 2017 Developers Share Posted August 14, 2017 Fine, so what is the problem with that? Do you have the Full version of SciTE4AutoIt3 installed? If so then open the SciTE4AutoIt3 helpfile and find the example for #AutoIt3Wrapper_Res_Icon_Add under AutoIt3Wrapper to get you going. Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Trong Posted August 14, 2017 Share Posted August 14, 2017 @Jos Why does not AutoIT have the full version (AutoIT and SciTE4AutoIT Full) for the installer? I think it would be a good idea! Regards, Â Link to comment Share on other sites More sharing options...
Developers Jos Posted August 14, 2017 Developers Share Posted August 14, 2017 That was on request of Jon at the time this project was started by me. I created the LITE version for inclusion in the standard AutoIt3 installer, which is a 2 file installation to keep things simple. We also wanted to leave it up to the scripter to choose their preferred Editor themselves. Jos SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Trong Posted August 14, 2017 Share Posted August 14, 2017 Although it is possible to change your favorite editor with just a few clicks I hope AutoIT soon has the full version and the same lite is released! Thanks to the Jon, Jos and AutoIT team. Regards,  Link to comment Share on other sites More sharing options...
nacerbaaziz Posted August 14, 2017 Author Share Posted August 14, 2017 i want to use the ResourcesEx.au3 but i want to add the icons to player not in RT_ICON i don't know how to do that using the ResourcesEx.au3 can i do that? I tried a lot and no icons appear on the screen but if i use the RT_ICON all thank is work i need your suggestions 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