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
136 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
ID: 6849069
push
0
 

Author Comment

by:escaper
ID: 6849549
push
0
 
LVL 9

Accepted Solution

by:
ginsonic earned 50 total points
ID: 6849711
Here is a good article about keyboard hooks :
http://www.delphi3000.com/articles/article_883.asp
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:escaper
ID: 6850183
push
0
 

Author Comment

by:escaper
ID: 6850227
push
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 6850480
What mean that?
0
 

Author Comment

by:escaper
ID: 6850756
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
ID: 6850809
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

813 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

17 Experts available now in Live!

Get 1:1 Help Now