Solved

notify when "fn" key is pressed

Posted on 2000-05-04
5
481 Views
Last Modified: 2010-08-05
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
Comment
Question by:hypereng
[X]
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
5 Comments
 
LVL 2

Expert Comment

by:mullet_attack
ID: 2777210
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
 
LVL 2

Expert Comment

by:craig_capel
ID: 2777636
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
 

Author Comment

by:hypereng
ID: 2778369
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
 
LVL 2

Expert Comment

by:craig_capel
ID: 2778435
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
 
LVL 1

Accepted Solution

by:
saulite earned 125 total points
ID: 2787846
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 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