jimg Posted April 20, 2010 Share Posted April 20, 2010 I'd like to send an EXE version of a script to a friend, and have it link to an icon of my choice. Ideally, I'd like to provide it in a form that when clicked, will install a desktop shortcut (with my icon) to a Program File folder, but I'll settle for the icon association if they create a shortcut on their own. I guess I need to look into installers... Link to comment Share on other sites More sharing options...
MilesAhead Posted April 20, 2010 Share Posted April 20, 2010 I'd like to send an EXE version of a script to a friend, and have it link to an icon of my choice. Ideally, I'd like to provide it in a form that when clicked, will install a desktop shortcut (with my icon) to a Program File folder, but I'll settle for the icon association if they create a shortcut on their own. I guess I need to look into installers...If you just compiled the exe with the custom icon wouldn't that solve the shortcut issue also?Maybe I'm not getting your question though. My Freeware Page Link to comment Share on other sites More sharing options...
jimg Posted April 20, 2010 Author Share Posted April 20, 2010 I think you're misjudging my level of expertise. I do some things well, but software isn't one of them. What does "compile with the icon" mean? I looked at the FileInclude function, and it seemed it just carry a file along and unload it later. No indication that a shortcut would assume the icon, etc. Link to comment Share on other sites More sharing options...
Makaule Posted April 20, 2010 Share Posted April 20, 2010 Just go to AutoIT Directory, find Aut2Exe directory and launch Aut2Exe.exe. There you may simply choice icon and compile your *.au3 Link to comment Share on other sites More sharing options...
Zedna Posted April 20, 2010 Share Posted April 20, 2010 Add this at top of your script #AutoIt3Wrapper_icon=your_icon.ico put your_icon.ico into script directory (needed at compile time only) and then compile your script from full Scite4Autoit3 (by F7) Now your compiled EXE script contains your icon and it's visible also when you create shortcut to your EXE file. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
jimg Posted April 20, 2010 Author Share Posted April 20, 2010 Exactly what I was looking for. Thanks! Link to comment Share on other sites More sharing options...
jimg Posted April 20, 2010 Author Share Posted April 20, 2010 Except it didn't work ! The icon (.ico) file is in the same directory as the script (.au3) file. The status window doesn't mention anything except the File size statistics. Link to comment Share on other sites More sharing options...
Andrei_V Posted April 16, 2021 Share Posted April 16, 2021 I had the exact same issue with the generic icon on the executable, and adding that line #AutoIt3Wrapper_icon=your_icon.ico ...doesn't help when I compile (or build) from inside SciTE.exe editor. However, what solved the issue for me was compiling from the specialized utility Aut2Exe_x64.exe, where you can select the specific icon you want. In my installation of AutoIt3, that utility is in the subdirectory C:\Program Files (x86)\AutoIt3\Aut2Exe\ That worked like a charm! Link to comment Share on other sites More sharing options...
Zedna Posted April 17, 2021 Share Posted April 17, 2021 (edited) You have to install/use FULL Scite4AutoIt3 editor for using AutoIt3Wrapper directives. Or use Pragma directives (Icon) instead (this is possible only in new versions of AutoIt, not at year 2010) https://www.autoitscript.com/autoit3/docs/keywords/pragma.htm #pragma compile(Icon, your_icon.ico) Edited April 17, 2021 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
isaias Posted March 15, 2023 Share Posted March 15, 2023 On 20/04/2010 at 06:10, Makaule said: Basta ir ao Diretório AutoIT, encontrar o diretório Aut2Exe e iniciar o Aut2Exe.exe. Lá você pode simplesmente selecionar o ícone e compilar seu arquivo *.au3 How many days wanting to do this now simple can it be worth it Link to comment Share on other sites More sharing options...
Developers Jos Posted March 16, 2023 Developers Share Posted March 16, 2023 @isaias, As you have been told: This is an English speaking forum so: Do NOT post translated Quotes into a reply Try to make some English sentences that makes sense as this last sentence sounds like a question, be is totally unclear what you are trying to tell us. So please try again. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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