Systray Notification

Started by keslaa, March 28, 2014, 06:23:04 AM

Previous topic - Next topic

keslaa

I am looking at incorporating a systray notification when running mandatory assignments on computers. I have looked at the following articles:

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/Systray~Icon~Questions+Notification~Balloon.txt
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/Systray~Icon~Questions+BalloonTip~in~Systray.txt

I am curious about the line IDI_TRAYICON = 100. What is this? I ask because I would like to "brand" the balloon with our company logo. Is that possible?

Deana

You can specify the icon to use when adding the icon using IntControl 1007 option 1.

If you simply want to modify the icon using IntControl 1007, then use option 4. 

Quote
p2 can be one or more of the following flags, combined with the bitwise OR ("|") operator:

Value Meaning

1 Modify tool tip (p3 specifies the new tool tip)

2 Modify icon (p4 specifies the new icon file)

p3 can be the tool tip (i.e., string that is displayed when the mouse passes over the tray icon), or "" for none.

p4 can be icon file, or "" for the default icon. If a file name is specified, it can be a .ICL file (icon library), or an .EXE or .DLL (or similar resource file) containing icons. If it is a resource containing multiple icons, by default the first icon in the file is used.

You can specify a different icon using the following format:

"filename|#"



where "filename" is the name of the file, followed by a vertical bar and then the index of the desired icon in the file ("#"). The first icon in a file has an index of  0. If an invalid icon file is specified, the default icon will be used.

Note: The icon resource must contain multiple images if you want to specify an index greater than zero.


Deana F.
Technical Support
Wilson WindowWare Inc.