iAmNewbe Posted April 30, 2011 Share Posted April 30, 2011 I am using #AutoIt3Wrapper_Res_Icon_Add= to embed icons into my compiled exe, it works great. But I noticed that there are three icons beings embedded that I did not instruct to be embedded and I can't find a way to stop or remove them. Using the directive above it starts adding icons at 5(-5) position in the exe. Position 0 is the application icon and then there are icon positions 1 to 4. In my exe there are three icons being embedded in position 1 though 3 and I can not find where they are coming from or how to stop them from being embedded. Positon 1 is a blank icon Position 2 is a red x (but not a windows close x) Position 3 is a black triangle with a black cross in the middle I can't locate these icons on my machine and I have no clue how or where they are being embedded. Is there a way to stop these from being embedded or remove them from the final exe without damaging the exe itself? I am using windows XP Pro 32bit. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 30, 2011 Moderators Share Posted April 30, 2011 iAmNewbe,Welcome to the AutoIt forum. Those "unwanted" icons are the default AutoIt icons which are included in all compiled AutoIt scripts. In terms of size they are minimal - most people just ignore them. As you found out, you can access the additional icons you have inserted by starting to index them at -5.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 Link to comment Share on other sites More sharing options...
Mobius Posted April 30, 2011 Share Posted April 30, 2011 (edited) @OP, Have you tried deleting all 954 bytes of those icons directly in the interpreter stub (AutoItSC.bin) with a tool such as Resource hacker? @Anyone Okay this is only semi related but.... Has anyone ever noticed that the message box function will always show the the AutoIt3 icon in its taskbar entry even if you purge the entire resource table from the interpreter! Ed: Even the hidden AutoIt V3 dummy dialog shows no icon in its main window but yet its taskbar icon behaves the same as the message box. How or why it does this is a mystery to me. Edited April 30, 2011 by Mobius Link to comment Share on other sites More sharing options...
UEZ Posted April 30, 2011 Share Posted April 30, 2011 You can delete embedded icons with #AutoIt3Wrapper! Example: #AutoIt3Wrapper_Run_After=ResHacker.exe -delete %out%, %out%, ICON, 1, #AutoIt3Wrapper_Run_After=ResHacker.exe -delete %out%, %out%, ICON, 2, #AutoIt3Wrapper_Run_After=ResHacker.exe -delete %out%, %out%, ICON, 3, #AutoIt3Wrapper_Run_After=ResHacker.exe -delete %out%, %out%, ICONGROUP, 162, #AutoIt3Wrapper_Run_After=ResHacker.exe -delete %out%, %out%, ICONGROUP, 164, #AutoIt3Wrapper_Run_After=ResHacker.exe -delete %out%, %out%, ICONGROUP, 169, Adjust path to ResHacker.exe. 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...
Mobius Posted April 30, 2011 Share Posted April 30, 2011 (edited) You could also delete these icons with using the following resource config elements [A3C_RES] Blank_ico=3`1`2057` Blank_ico_grp=14`162`2057` RedX_ico=3`2`2057` RedX_ico_grp=14`164`2057` Crosshair_ico=3`3`2057` Crosshair_ico_grp=14`169`2057` []Shameless plug sorry. @UEZ,Dude I can't believe you are actually suggesting that someone execute resource hacker no less that 6 separate times to achieve this task!!!Haven't you ever heard of a resource hacker config / script? Edited May 1, 2011 by Mobius Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 30, 2011 Moderators Share Posted April 30, 2011 Mobius,Shameless plugCareful - they will be asking for royalties next! And speaking of royalty - I did enjoy watching the marriage of my future King and Queen yesterday. Made me proper proud it did!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 Link to comment Share on other sites More sharing options...
UEZ Posted April 30, 2011 Share Posted April 30, 2011 Monarchy still exists - what a shame... Sorry, a little bit off topic but wanted to say. 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...
Moderators Melba23 Posted April 30, 2011 Moderators Share Posted April 30, 2011 (edited) UEZ,Remember they are actually yours - House of Saxe-Coburg and Gotha until the name was changed to House of Windsor in 1917 because of a certain unpleasantness occurring at the time. M23Edit: Typnig. Edited April 30, 2011 by Melba23 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 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