Jump to content

changing the AutoIt tray icon


Bert
 Share

Recommended Posts

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?

Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
Share on other sites

  • Developers

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)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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