Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

Capture keys

Trying to capture a key event in a component so that key strokes can be processed even if the program is does not have the focus.
0
Strona01
Asked:
Strona01
  • 4
1 Solution
 
ceoworksCommented:
You can use JediVCL's TJvApplicationHotKey component. It's really easy to use. If you don't have JVCL, you can download it from http://sourceforge.net/projects/jvcl

Cheers,

Oktay
0
 
ceoworksCommented:
After you install JVCL, you can find this component in 'Jv Application and Forms' tab..
0
 
ceoworksCommented:
Did you try it ?
0
 
Strona01Author Commented:
Unfortunatley its for a Unitec assignment, so I need code not an already built component.  Also have reread my assignment and I need to capture the keys when the component doesn't have the focus, not the program.
This makes it easier and I've now worked it out, thanks anyway
0
 
ceoworksCommented:
You can use TActionList for this. Anyway..

Cheers,

Oktay
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now