lee321987 Posted March 5, 2014 Share Posted March 5, 2014 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? Link to comment Share on other sites More sharing options...
Solution orbs Posted March 5, 2014 Solution Share Posted March 5, 2014 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. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
lee321987 Posted March 5, 2014 Author Share Posted March 5, 2014 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. Link to comment Share on other sites More sharing options...
orbs Posted March 5, 2014 Share Posted March 5, 2014 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>> Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
lee321987 Posted March 5, 2014 Author Share Posted March 5, 2014 Alright, thank you. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 5, 2014 Moderators Share Posted March 5, 2014 Or, you could learn to code properly, and add your own meaningful icons to your scripts. It is, after all, only a single line. #pragma Compile(Icon, <Filename>) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
tonycst Posted March 7, 2014 Share Posted March 7, 2014 (edited) 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 March 7, 2014 by tonycst Link to comment Share on other sites More sharing options...
lee321987 Posted March 8, 2014 Author Share Posted March 8, 2014 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) Link to comment Share on other sites More sharing options...
AdamUL Posted March 8, 2014 Share Posted March 8, 2014 If you want to see why the icon was removed, have a look at >this thread. Adam Link to comment Share on other sites More sharing options...
tonycst Posted March 8, 2014 Share Posted March 8, 2014 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. Link to comment Share on other sites More sharing options...
orbs Posted March 8, 2014 Share Posted March 8, 2014 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= Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 8, 2014 Share Posted March 8, 2014 Did you install SciTE4AutoIt3? The wrapper is part of that, not AutoIt. What does it say on the console when you compile from SciTE? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
tonycst Posted March 8, 2014 Share Posted March 8, 2014 (edited) 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 March 8, 2014 by tonycst 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