Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to catch the Fn+? keys on laptop?

Tags:

delphi

Can I catch the Fn+F3( or Fn+F2....) keys with my program?

like image 654
Leo Avatar asked May 06 '10 01:05

Leo


People also ask

How do I get the Fn key on my laptop?

The Fn key is located in the bottom row of a keyboard, generally next to the Ctrl key.

How do I turn my Fn key back on?

Make Sure the Fn Keys Are Not Locked On your keyboard, look for an Fn, F lock, or F Mode key. Depending on your laptop, you should press for one time or press and hold for a few seconds. If this didn't work, press the Fn and Esc keys at the same time. Then, try to use one of the Function keys.

How do you get Fn unstuck?

Press Function key + the Escape key to turn it off.


2 Answers

@Leo, the main function of the Fn is change the scancodes of other keys on the keyboard, unfortunately the Fn key usually (in some systems this key returns an ScanCode) doesn't have an scan code, additionally the behavior of this key is not standardized as other keys (Ctrl ALT) because of this is very hard detect or intercept when this key is pressed.

You can check theses links for more info

  • Mystery of the Fn key - A guide to remapping the Fn key in Windows
  • Keyboard scancodes
like image 104
RRUZ Avatar answered Oct 05 '22 13:10

RRUZ


Here is the list of keycodes from MSDN. Using the information there, you could probably figure out which key codes to listen for.

As @RRUZ mentioned above, the FN key modifies the key code being sent.

You could always create a MessageBox that displays the key code whenever you press a key and use the values it gives you.

like image 22
Nathan Osman Avatar answered Oct 05 '22 13:10

Nathan Osman