Jump to content

Recommended Posts

Posted

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

Posted

... 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

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

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
  • Recently Browsing   0 members

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