Yep, the old RTFM thing y'all know :shock: :wink:
/* Icon, FileName [, IconNumber] [v1.0.13+]: Changes the script's icon to one of the ones from FileName (a .ico, .dll, or .exe file). If IconNumber is omitted, it defaults to 1 (the first icon in the file). Specify an asterisk (*) for FileName to restore the script to its default icon. This setting affects the tray icon and the one displayed by InputBox, Progress, and GUI windows. Compiled scripts are also affected even if a custom icon was specified at the time of compiling. The built-in variables A_IconNumber and A_IconFile contain the number and name (with full path) of the current icon (both are blank if the icon is the default). Icon (with no parameters) [v1.0.09+]: Creates the tray icon if it isn't already present. This will override #NoTrayIcon if that directive is also present in the script. NoIcon [v1.0.09+]: Removes the tray icon if it exists. If this command is used at the very top of the script, the tray icon might be briefly visible when the script is launched. To prevent that, use #NoTrayIcon instead. In v1.0.13+, the built-in variable A_IconHidden contains 1 if the tray icon is currently hidden or 0 otherwise. */ #NoTrayIcon Loop { Menu, Tray, Icon, C:\fish.ico Menu, Tray, Icon Sleep, 1000 Menu, Tray, Icon, C:\fish2.ico Menu, Tray, Icon Sleep, 1000 }
The script uses two fish.ico's provided with Rajat's famous AHK-Aquarium.
And yes, you can/should tweak that script snippet using "real" animated icons. :wink:
[The fish !]