Jump to content

Recommended Posts

Posted

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

Posted (edited)

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.
Posted

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 ?

Posted

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.

Posted

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.

try for yourself. that doesn't work.

Posted (edited)

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
Posted

awww.... it turns out that i have been saving the script somewhere else without the .ico in that folder. :shocked:

ok, i am stupid.

Next, when the c.ico is live in the tray, where did those black color come from ?

I should have sky blue in those areas.

What happend there?

c.ico

live_duck.au3

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
×
×
  • Create New...