mercadantelaura Posted November 26, 2013 Posted November 26, 2013 I have created script that uses $cmdline to call a determinate function. Infact my scripts make different things from different $cmdLine. Compiled script i create shortcut to EXE file inserting different suffix "%1" in order to run determinate internal function. For this reason I want also realize EXE compiled that has diferent internal icons in order to have Shortcut icon for each function called. Unfortunately program that compile permit me to add only one icon to EXE. I have proved to edit EXE created using "ResHacker" and add new resource icon, but when i save new EXE with new icons added, it is not executable, infact causes error. I have readed on web how do and spoke of "wrapper" but i don't understand How i can do. Can someone explain better how compile script to exe that have internal more icons (not for systray icons) but the internal exe icons when i link to it. Thanks
Moderators Melba23 Posted November 26, 2013 Moderators Posted November 26, 2013 mercadantelaura,You need to download and install the full SciTE4AutoIt3 package from here. Then you can add icons using the #AutoIt3Wrapper_Res_Icon_Add= directives - look in <Help - SciTE Help - Extra Utilities - AutoIt3Wrapper - Adding extra icons to the program resources> for more details - including an example script. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
mercadantelaura Posted November 26, 2013 Author Posted November 26, 2013 mercadantelaura, You need to download and install the full SciTE4AutoIt3 package from here. Then you can add icons using the #AutoIt3Wrapper_Res_Icon_Add= directives - look in <Help - SciTE Help - Extra Utilities - AutoIt3Wrapper - Adding extra icons to the program resources> for more details - including an example script. M23 Ok done, Thanks. I have an addiction question on this topic. Using AutoIt3Wrapper and including in my script these icons #AutoIt3Wrapper_Res_Icon_Add=C:Test01.ico #AutoIt3Wrapper_Res_Icon_Add=C:Test02.ico #AutoIt3Wrapper_Res_Icon_Add=C:Test03.ico I have as default the AutoIT icon. To have my personal icon as default i must EDIT "AutoIt3Wrapper.INI" and insert into field "Icon=" [Autoit] aut2exe= Icon= .......My "Folder PathFile.ICO" OutfileType= Compression= UseUpx= In this mode for each my script i must go to "AutoIt3Wrapper.INI" file's folder, edit it and insert default ICO that i want for EXE and then insert into my script all my other icons that i want. In addiction i have always inside of EXE other 3 Auto-IT icons that i don't want. There'S some other more rapid method that permit me to do this also to not include default icons ? Thanks
Moderators Melba23 Posted November 27, 2013 Moderators Posted November 27, 2013 mercadantelaura,If you want to profit from the additional tools that the full SciTE4AutoIt3 package brings, I suggest that you spend some time reading the SciTE Help file which gives you full details. If you look at teh directives available, you will find this one:#AutoIt3Wrapper_Icon= ;Filename of the Ico file to use for the compiled exePut it in your script and you will set the default icon for the executable. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
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