Sign in to follow this  
Followers 0
leuce

Compiler says icon is wrong format

3 posts in this topic

G'day everyone

I'm trying to compile a script with the attached ICO file as icon. It is a 24-bit BMP file with the .ico file extension. The AutoIt compiler says "Error changing icon: Unable to read icon or icon was the wrong format." What must the icon file look like for AutoIt's compiler to accept it?

Thanks

Samuel

scripticon.ico

Share this post


Link to post
Share on other sites



... It is a 24-bit BMP file with the .ico file extension....

Renaming a .bmp to .ico doesn't do anything. You need to convert it into an icon format.

You can do this for example with icofx

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Renaming a .bmp to .ico doesn't do anything.

Interesting... Microsoft Windows accepts icons that are 32x32 simple 24-bit BMP files with a .ico file extension (try it yourself).

However, you're probably right, so I found a web-based solution for converting icons:

http://www.coolutils.com/online/image-converter/

...and sure enough, AutoIt now likes the icon enough to compile it.

Edited by leuce

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