?
Solved

notify when "fn" key is pressed

Posted on 2000-05-04
5
Medium Priority
?
482 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 375 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

743 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