Jump to content

Tray icon


Recommended Posts

Holly molly, don't you have this link either. It got to be spreading. Wonder if I should file a bug report?

Link to comment
Share on other sites

I want to use a different icon in the system tray instead of the au3 pic.

Also, I want to alternate between a.bmp and b.bmp.

also, when I right click on it and I want to have options to choose from

@_@a

When you compile it with an Icon it uses that icon for the system tray icon. but you have to compile it first.

Or you can use TraySetIcon

Read the help file. It has all of that in there.

Edited by EndFunc
EndFuncAutoIt is the shiznit. I love it.
Link to comment
Share on other sites

When you compile it with an Icon it uses that icon for the system tray icon. but you have to compile it first.

Or you can use TraySetIcon

Read the help file. It has all of that in there.

TraySetIcon ( [iconfile [, iconID] )

I tried to read the help file, yet it doesn't contain useful information.

The sytaxchecker of the editor won't let this go:

TraySetIcon ( "a.bmp" )

nor will it let this go

TraySecIcon ( "a.ico" )

How exactly do I use TraySetIcon ?

Link to comment
Share on other sites

I would assume that to use this:

TraySecIcon ( "a.ico" )

The icon file must be in the same directory as the script. Otherwise, include the full path to the icon file.

A little reading goes a long way. Post count means nothing.

Link to comment
Share on other sites

oh I see, it has to be a dll to be called, and calling the .ico itself doesn't work.

how do I creat DLL just to carry .ico I need ?

it works fine over here with icon file, are you sure that the icon is in the same path as the script??

I'm doing this in a script,and it works fine!

in this case the icon is in a folder named "icon"

fileview "/":

traytest.au3 <file>

icon <folder>

fileview "/icon/":

main.ico <file>

TraySetIcon("icon/main.ICO")
Edited by thor918
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...