Solved

notify when "fn" key is pressed

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

10 Experts available now in Live!

Get 1:1 Help Now