Sign in to follow this  
Followers 0
tk1

Custom icon when compiling

3 posts in this topic

Hello,

I know I saw somewhere instructions on using a custom icon when you compile your script, but the only one I can find right now is http://www.autoitscript.com/autoit3/docs/intro/compiler.htm (item #5).

I've tried a simple search on the forums, in the documentation, and the help file, but I can't find it.     :mad2:

I want to have a custom icon for my compiled script (.exe) that you see in Windows Explorer; when the program is running (upper left corner of the window); and on the taskbar.

Would someone be so kind as to point me to the information on how to do this?

When I try compiling in (full) SciTE, and telling it the icon I want, I get the following:

an Aut2Exe Error pop-up that says "Error changing icon: Unable to read icon or icon was of the wrong format."

and then it puts this into the top of my code:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\..\..\..\..\SW\myLogo.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Thanks,

tk

Share this post


Link to post
Share on other sites



Try to open the icon in IcoFx portable to see if the file is corrupt.  If it opens, resave it with a new name.

Share this post


Link to post
Share on other sites

Thank you for the reply, gruntydatsun.

It opened, so I did as you said and it looks like all it did was change the bit depth from 24 to 32.  Now I can use that file, so do you think that was the problem, wrong bit depth?

Thanks again,

tk

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  
Followers 0