Sign in to follow this  
Followers 0
Dazzler

Changing AutoIT script tray icon

5 posts in this topic

Dear People,

Can I change the standard AutoIT exe icon in the system tray?

TraySetIcon - looks to be the candidate but on looking at the code (in help files) I can't see how you index any process/application to this command.

?

Share this post


Link to post
Share on other sites



... I can't see how you index any process/application to this command.

Can you explain what you mean in more detail?

Share this post


Link to post
Share on other sites

Sure.

Run any autoit.au3, autoit.exe file and you get the grey round button with a white triangle in the system tray (icons showing what is running). I simply want to change this icon to one of my own.

I looked through several topics on this in this forum and none make any sense to me.

Share this post


Link to post
Share on other sites

An example from one of my scripts

$icon = @HomeDrive & "\RegBackup\chimaera.ico"
TraySetIcon($icon)

And if you want the compiled file to use it as well

#AutoIt3Wrapper_Icon=compile_files\chimaera.ico

Bear in mind you wont see the tray one until you compile and run the exe

Share this post


Link to post
Share on other sites

Brilliant and now... so easy. Many 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