Jump to content

Compiler says icon is wrong format


leuce
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...