• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

notify when "fn" key is pressed

On my laptop computer I have a key named "Fn" (the function key) and I want to make a function that can override the key when it is pressed. How do I do that?
0
hypereng
Asked:
hypereng
1 Solution
 
mullet_attackCommented:
I would guess that you can't. A standard keyboard does not have this key, therefore there is not a key scan code for it. In the PC keyboard(original) a Micro converts the x-y key matrix into these scan codes, and sends them to another micro on the motherboard (keyboard controller). All PC hardware does it like this, althought these days using different chipsets. In your laptop, the micro that does the keyboard stuff sends different keycodes depending on the state of the Fn Key, therefore it doesn't exist as a key in it's own right, it only modifies other keys codes. Sorry 'bout this, but my opinion is that this can't be done (perhaps the manufacturer can, but they know stuff we dont).
0
 
craig_capelCommented:
hyp, out of intrest what does this do to the function keys?...

asm
  in al,21h
  or al,2;
  out 21h,al;
end;
 

Goes in one button then this in the second...



                    asm
                        in al,21h
                        and al,253;
                       out 21h,al;
                    end;  

When u press them, does the FN key still work?...
0
 
hyperengAuthor Commented:
It seems to be very difficult (maybe impossible) disabling the function key while the assembly stuff doesn't dissable the function key, even though it dissables all the other keys on the keyboard.
0
 
craig_capelCommented:
so i take it you tried that, and it failed.... I think your right, its impossible :) unless you get code from the people who made the laptop....
0
 
sauliteCommented:
You can't handle that key. This key is handled by keyboard itself. For example, if you press [Fn]+[Setup], keyboard sends [Setup] keycode only. Of course you can handle the [Setup] ceycode. This key is made only to decrease the size of keyboard.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

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.

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