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
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
137 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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