Jump to content
Sign in to follow this  
qwertylol

Tray icon

Recommended Posts

qwertylol

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

Share this post


Link to post
Share on other sites
Uten

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

Share this post


Link to post
Share on other sites
EndFunc

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.

Share this post


Link to post
Share on other sites
qwertylol

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 ?

Share this post


Link to post
Share on other sites
Snarg

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.

Share this post


Link to post
Share on other sites
qwertylol

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.

Share this post


Link to post
Share on other sites
qwertylol

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 ?

Share this post


Link to post
Share on other sites
thor918

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

Share this post


Link to post
Share on other sites
Helge

You keep amazing me...you don't even have TraySetIcon in that script !

Share this post


Link to post
Share on other sites
qwertylol

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

Share this post


Link to post
Share on other sites
xcal

Was that script supposed to show that icon?

Anyway, the blue could just be a representation of transparency in your ico editor.

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  

×