Solved

need a example of  system hook {-- if  anyone press the enter key , then the program send a message to another program

Posted on 2002-03-07
8
134 Views
Last Modified: 2010-05-18
can you give me souce code ?

when the client program run , if the 'enter key' be pressed down , the client program send a message
to
the server program in another pc .

thank you in advance . very thank you
0
Comment
Question by:escaper
  • 5
  • 3
8 Comments
 

Author Comment

by:escaper
Comment Utility
push
0
 

Author Comment

by:escaper
Comment Utility
push
0
 
LVL 9

Accepted Solution

by:
ginsonic earned 50 total points
Comment Utility
Here is a good article about keyboard hooks :
http://www.delphi3000.com/articles/article_883.asp
0
 

Author Comment

by:escaper
Comment Utility
push
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:escaper
Comment Utility
push
0
 
LVL 9

Expert Comment

by:ginsonic
Comment Utility
What mean that?
0
 

Author Comment

by:escaper
Comment Utility
oh, sorry.

when my client program run in back-end, if 'enter' key be pressed,
the program will send a message to my server program which
in an another pc
0
 
LVL 9

Expert Comment

by:ginsonic
Comment Utility
The tip show you how can make a hook for keyboard .
The hook will detect when the user press a key ( in your case choise action just for enter key ) and send ( I don't know how you communicate between client and server ) then the message .

I think you know how to send the message . If not I can send you a project to see how can send messages between server and client ( is a chat project ) .
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 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