Jump to content

Recommended Posts

Posted

Hi! Create animated tray looks like Posted Image possible in AutoIT?

Create a different image for each frame, and then TraySetIcon the images.
Posted (edited)

Say you used the freeware application called "Icon Developer" which was built by Stardock - you can find it on the web. You would use it to make two icon files, switch tray icons every 600 milliseconds or so, this way:

$icon01 = @ScriptDir & "\pic01.ico"
$icon02 = @ScriptDir & "\pic02.ico"
$switch = False
AdlibEnable("SwitchIcons", 600)
Func SwitchIcons()
    If $switch Then
        TraySetIcon($icon01)
    Else
        TraySetIcon($icon02)
    EndIf
    $switch = Not $switch; brought to you by forum member - rasim
EndFunc  ;==>SwitchIcons
Edited by Squirrely1

Das Häschen benutzt Radar

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...