Sign in to follow this  
Followers 0
Bert

changing the AutoIt tray icon

8 posts in this topic

Is there a way to change the AutoIt tray icon? I want to keep it visible, but change it to a different icon. I wrote a application (UNPlus) to work with a program we use, and I want to have a special icon in the tray while UNPlus is running. Is this possible?

Share this post


Link to post
Share on other sites



Hi!

The tray icon depends on the icon of the program itself. So just use "Compile with options" and speciy your icon.

Perhaps use Resource Explorer to get the icon of the original app if you need this one.

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites

Is there a way to change the AutoIt tray icon? I want to keep it visible, but change it to a different icon. I wrote a application (UNPlus) to work with a program we use, and I want to have a special icon in the tray while UNPlus is running. Is this possible?

<{POST_SNAPBACK}>

Maybe you can use this command (see also the help file)

TraySetIcon ( [iconfile [, iconID] )

The example from the help file

Opt("TrayMenuMode",1)  ; Default tray menu items (Script Paused/Exit) will not be shown.

$exititem      = TrayCreateItem("Exit")

TraySetState()

$start = 0
While 1
    $msg = TrayGetMsg()
    If $msg = $exititem Then ExitLoop
    $diff = TimerDiff($start)
    If $diff > 1000 Then
        TraySetIcon("Shell32.dll",Random(0,100,1))
        $start = TimerInit()
    EndIF
WEnd

Exit

I hope this helps you.

Share this post


Link to post
Share on other sites

right click on the au3 file in the explorer and click the respective option. Very simple.

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites

Open Aut2exe and choose the icon through there


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

Did that. Choice not provided. I have run script, compile script, edit script and open. thats it.

<{POST_SNAPBACK}>

This option is only available when you have CompileAU3 installed ( Included in SciTE4AutoIt3)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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