Jump to content
Sign in to follow this  
lee321987

Get back old default icon for AutoIt-created .EXE's?

Recommended Posts

lee321987

Hello.

I just upgraded to AutoIt v3.3.10.2.

There is a new default icon for the .EXE's created by AutoIt.

Is there any way to get the old icon back?

Share this post


Link to post
Share on other sites
orbs

AutoIt icons can be found in the surprisingly named "Icons" folder in the AutoIt installation directory, commonly "C:\Program Files (x86)\AutoIt3\Icons\".

use the wrapper directive #AutoIt3Wrapper_Res_Icon_Add= to add the icon of your choice. this is explained in SciTe help.

Share this post


Link to post
Share on other sites
lee321987

Thanks orbs, but that would require adding something to every script.

I was hoping for a setting I could just flip.

I did look through the change log (before I posted the question), and saw no mention of this change.

Share this post


Link to post
Share on other sites
orbs

that would require adding something to every script.

 

 

that is correct. this is not too hard though, with a utility that enables you to search & replace in multiple files, like SciTe Jump, or even from inside SciTe for all scripts currently open in SciTe, as discussed here:

'?do=embed' frameborder='0' data-embedContent>>

Share this post


Link to post
Share on other sites
lee321987

Alright, thank you.

Share this post


Link to post
Share on other sites
tonycst

 I thought i had virus or something.

Why would anyone decide to change it ?

Speaking of icons, i have this #AutoIt3Wrapper_Res_Icon_Add=filename.ico in my script but icon is not included.

Previous version of autoit had no problems with this but latest does.

I tried to give full path to icon file but no help.

I tried to give quotes to path "path" but no help

#AutoIt3Wrapper_Res_Icon_Add=C:Program Files (x86)AutoIt3Iconsau3.ico
#AutoIt3Wrapper_Res_Icon_Add=C:Program Files (x86)AutoIt3Iconsfiletype1.ico
#AutoIt3Wrapper_Res_Icon_Add=C:Program Files (x86)AutoIt3Iconsfiletype2.ico
#AutoIt3Wrapper_Res_Icon_Add=C:Program Files (x86)AutoIt3Iconsfiletype3.ico
#AutoIt3Wrapper_Res_Icon_Add=C:Program Files (x86)AutoIt3Iconsfiletype-blank.ico

As from help file does not work. Explorer finds each file but autoit does not add it to my script icons.

Any ideas ?

Edited by tonycst

Share this post


Link to post
Share on other sites
lee321987

Speaking of icons, i have this #AutoIt3Wrapper_Res_Icon_Add=filename.ico in my script but icon is not included.

 

It actually does pack the icon file into the EXE, it just doesn't set it as the EXE's icon.

Both of these make it the EXE's icon:

#AutoIt3Wrapper_Icon=filename.ico
#pragma Compile(Icon, filename.ico)

Share this post


Link to post
Share on other sites
AdamUL

If you want to see why the icon was removed, have a look at >this thread.  

 

Adam

Share this post


Link to post
Share on other sites
tonycst

No no no no, you dont get it. My script includes MANY icons, not just one.

Assigning icon to compiled script is one thing, but later autoit releases somehow do not include my icons into file anymore.

Maybe they do and hide them, because when i create shortcut to my compiled file and change shortcut icon by picking my compiled script, i only see default autoit icons but none of my 10 custom icons to pick from.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=icon.ico
#AutoIt3Wrapper_Outfile=..Autodesk Loader.exe
#AutoIt3Wrapper_Compression=0
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSource3dsmax.ico
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSourceautocad.ico
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSourcecombustion.ico
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSourcecomposite.ico
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSourceimagemodeler.ico
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSourcematchmover.ico
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSourcemaya.ico
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSourcemudbox.ico
#AutoIt3Wrapper_Res_Icon_Add=P:Autoit projectsLoadersAutodesk LoaderSourcestitcher.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSource3dsmax.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSourceautocad.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSourcecombustion.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSourcecomposite.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSourceimagemodeler.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSourcematchmover.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSourcemaya.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSourcemudbox.ico
#AutoIt3Wrapper_Res_File_Add=P:Autoit projectsLoadersAutodesk LoaderSourcestitcher.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

None of those icons are shown, only one that i pick to be compiled script icon as well as autoit default + icon, thats it.

Share this post


Link to post
Share on other sites
orbs

this directive will add icon to be the main icon as displayed by Windows (which is what you ask?)

#AutoIt3Wrapper_Icon=

this directive will add additional icons for internal use:

#AutoIt3Wrapper_Res_Icon_Add=

Share this post


Link to post
Share on other sites
tonycst

to ORBS: (which is what you ask?)

No thats not what i ask.

 to AdmiralAlkex:

Yes i have it

!>14:18:07 Error: Failed to get script data from end of target file.  Skipping resource update.rc:2

I dont normally compile from the editor, i usually right click and select compile with options, so i didnt know this error was there.

No matter how i compile it, from the editor or not, x64 or x86, extra icons are not included.

Edited by tonycst

Share this post


Link to post
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
Sign in to follow this  

×