Sign in to follow this  
Followers 0

Icon problem

5 posts in this topic

Posted

Hi

I use the following line in my code:

#AutoIt3Wrapper_icon=MyApp.ico

I used MS PAINT to create the icon. Saved as .BMP and renamed to .ICO (16x16 pixels, 24bit)

Windows displays the .ico file ok.

Can i use MS PAINT to create the icon?

The script compiles and builds ok, but the icon is not changed. How can i get it to change?

Share this post


Link to post
Share on other sites



Posted

Hello poppe,

You can save any file with any extension, even creating your own extensions. However what the file contains is still the form that created it. If you take a .txt file and change the extension to .dll, your pc will show a dll icon to represent the file in explorer, however it cannot be run as a dll unless its coded as one. The file can still be read as a text file though. The same is for images, unless you convert the image with the proper technology, the image is still the same. So changing the extension to .ico does not convert your bitmap image to an icon. Try googling for software that will convert images into icons.

Realm

Share this post


Link to post
Share on other sites

Posted

Hello and thanks for the reply

I tried another actual .ico file, but it does not seem to update to my exe. The myapp.exe file still has the original autoit icon.

Is this windows related problem? Do i need restart windows or something whenever i change the icon file?

Share this post


Link to post
Share on other sites

Posted (edited)

I have never had to restart windows to get the icon before. Are you absolutely sure the other icon you used is an icon?

Is the icon in the same directory folder as the .au3 file you are attempting to compile?

#AutoIt3Wrapper_icon=MyApp.ico ;<=== Icon should be located in same directory as .au3 file

*edit -

The icon does not necessarily have to be in the same directory... However your wrapper is instructed to look for it in the same directory as the .au3 file its instructed to compile.

Edited by Realm

Share this post


Link to post
Share on other sites

Posted

I recreated the .ico

now it works.

Thanks.

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

  • Recently Browsing   0 members

    No registered users viewing this page.