Jump to content

unwanted ICONS embedded in exe


Recommended Posts

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

  • Moderators

iAmNewbe,

Welcome to the AutoIt forum. :unsure:

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

@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 by Mobius

wtfpl-badge-1.png

Link to comment
Share on other sites

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

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. :unsure:

@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 by Mobius

wtfpl-badge-1.png

Link to comment
Share on other sites

  • Moderators

Mobius,

Shameless plug

Careful - they will be asking for royalties next! :>

And speaking of royalty - I did enjoy watching the marriage of my future King and Queen yesterday. :unsure: Made me proper proud it did!

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Monarchy still exists - what a shame... :unsure:

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

  • Moderators

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. :>

M23

Edit: Typnig. :unsure:

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...