Solved

notify when "fn" key is pressed

Posted on 2000-05-04
5
475 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now