?
Solved

Message sent to System Tray App

Posted on 2002-04-28
2
Medium Priority
?
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 200 total points
ID: 6974971
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
ID: 7168551
Thank you..
Jim
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 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