kosamja Posted January 22, 2018 Share Posted January 22, 2018 I tried to set icon from this file: BatteryFlatIcon.res , but this doesnt work: TraySetIcon(@scriptdir & "\BatteryFlatIcon.res", 1). How to change autoit tray icon? Link to comment Share on other sites More sharing options...
kosamja Posted January 23, 2018 Author Share Posted January 23, 2018 Any other way to change autoit tray icon except TraySetIcon? Link to comment Share on other sites More sharing options...
XaelloNegative Posted January 23, 2018 Share Posted January 23, 2018 Have you tried converting it to .ico? There might be some problems with the file ~XN~ Link to comment Share on other sites More sharing options...
kosamja Posted January 23, 2018 Author Share Posted January 23, 2018 There are 6 icons in file, i would prefer to use 1 file instead of 6. I just added icons to res file with Resource hacker, it shouldnt be corrupted. Link to comment Share on other sites More sharing options...
1957classic Posted January 23, 2018 Share Posted January 23, 2018 I converted your file to a dll file using Resource Hacker and it works fine. kosamja 1 Link to comment Share on other sites More sharing options...
benched42 Posted January 29, 2018 Share Posted January 29, 2018 First extract all six icons within the RES file to six different (even different sized) PNG files; you may need to convert the extracted files to PNG. Then use something like GIMP to combine all six into one ICO file. I do this with nearly all the icons I use with AutoIt. Typically, there are five PNG files that are sizes 128x128, 64x64, 48x48, 32x32 and 16x16. Sometimes there is a sixth PNG file that is 256x256. I then layer all the PNG files from largest to smallest and create the ICO file. When you compile the AU3 file use the #AutoIt3Wrapper_Icon to point to the ICO file created. Then Windows will use the appropriate sized icon for display. Who lied and told you life would EVER be fair? 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