Solved

Message sent to System Tray App

Posted on 2002-04-28
2
165 Views
Last Modified: 2010-08-05
Hello -

Anyone have a sample of code (or set of componets to recommend) that would offer one main application to send a message to another application that is sitting in the system tray? It would be good too if the message would pop up the message right over the system tray application repeating the message just sent (like a balloon form) instead of the tray icon flashing (like most IRC apps) forcing the user to click on the system tray icon to get the message.

For example:

App1, sitting in the system tray area, is waiting for a message.

App2 is loaded and user types in a message into an edit box and then presses the 'ok' button.

App1 pops up a 'form' indicating a message was sent and the message was.....

TIA -

RB
0
Comment
Question by:routerboy309
2 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 50 total points
Comment Utility
you can use WM_COPYDATA message
I reccomend TCoolTrayIcon for the tray icon :)
so ..
check out my post on this at http://www.delphi-si.com/forum/prikazisporocila.php?tema=34&mesto=def

the comments are in slovene, but the code is wel understandable
in the client you'll probably use the SendBuffer method
in the servers GetData procedure check if it's a string: in this case Command = 1
then if you're using the TCoolTrayIcon simply do:
CoolTrayIcon.ShowBalloonHint('Title', 'Message', bitInfo, 10);


if you still need help just ask :)
0
 

Author Comment

by:routerboy309
Comment Utility
Thank you..
Jim
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now