leuce Posted November 3, 2011 Share Posted November 3, 2011 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 More sharing options...
JFX Posted November 3, 2011 Share Posted November 3, 2011 ... 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 Link to comment Share on other sites More sharing options...
leuce Posted November 3, 2011 Author Share Posted November 3, 2011 (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 November 3, 2011 by leuce 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