How can I swap Ctrl and Fn keys on a corporate computer?

18,548

Solution 1

It can't be done. Not without getting your hands dirty, that is opening up keyboards and swapping keys at the hardware level. Pressing the Fn-key changes the scancodes for other keys on the board, but is not reported to the operating system. For example, on a lot of notebook keyboards, pressing Fn-K will be registered as pressing an actual Numpad 2, even though that key might not physically exist. The operating system is fully unaware of any Fn-key and its presses can therefore not be remapped on a software level.

Solution 2

You can do it with Autohotkey. Download, install, and add this in the default script:

vkFFsc023::Send ^c

If this doesn't do, we probably have different keycodes (Because it works on my machine ;)). In this case, choose Open from AHK's icon in the system tray, then press CtrlK to view the key history, press fnc, then F5 to refresh, and change the vk and sc values in the script with the numbers in the first two columns of the row corresponding to your keypress.

You can do that for any combination of Ctrlsomething that you'd like to be remapped.

Solution 3

Download AutoHotkey and you can use this script

!v::Send ^v 

Here when you will press the Alt+V it will behave for paste.

If you want to remap Ctrl+C with Alt+C then just add this line to the script

!c::Send ^c  

this will copy the text. However you can't remap the Fn key with AHK.

Share:
18,548

Related videos on Youtube

Murray Furtado
Author by

Murray Furtado

Hello, world! I enjoy using my experience to help others. That is why I am active at a number of other sites in the StackExchange network on topics that interest me. I'm something of a Swiss army knife both professionally and in private, able to juggle a wild variety of things at once. I've worked in every kind of business that uses software. I'm also very good with tools, both IT and mechanic. Whether you need software design or assembling some IKEA furniture, I'm your man for the job. I'm generally soft-spoken but driven by clear principles. I'm a twin, I've lived in five countries, I speak four languages fluently and two more embarrassingly. Also, being a father routinely develops my patience which is useful for moderating on StackExchange too. To learn more about me, see my Google+ profile.

Updated on September 18, 2022

Comments

  • Murray Furtado
    Murray Furtado over 1 year

    Our computers have been upgraded to HP EliteBook 8570p machines and while they're very nice machines, they are also very large -- so large that the left Ctrl key is too far away, making Ctrl+V really difficult to do with one hand.

    I'm sure there are ways to re-map the keys so that their signal is swapped. But add the factor of corporate security, is there still a reasonably simple approach to this?

    I'm sure you'd like more information before you can answer -- I'll try to add updates based on comments and answers.

    • avirk
      avirk over 11 years
      Do you need to change the ctrl+v function only or you want to remap the ctrl key? Have you look at AutoHotkey?
    • Stefan Seidel
      Stefan Seidel over 11 years
      I know that in the old IBM Thinkpads you could swap those keys in the BIOS. If you have access to the BIOS, try this, or you could ask an admin if they do it for you.
    • Synetech
      Synetech over 11 years
      A few select systems (older IBM ThinkPads for the most part) implement the FN in software and therefore can be remapped, but the vast majority do not and therefore cannot. Unfortunately, your HP does not seem to be one of the ones that can be remapped, but check the BIOS to be sure.
    • Murray Furtado
      Murray Furtado over 11 years
      Good advice! Sadly the machines are locked down hard, so there's no BIOS available and it's not something I'd want to talk to Support about.
  • Murray Furtado
    Murray Furtado over 11 years
    I've heard much good about AHK but never used it. Now I have a good reason to try it out! @Marcks answer makes sense in that the Fn key can't be remapped, but if AHK can simply add combos then it's perfect. Then Ctrl-C and Fn-C would work and do the same. Will try this out in the next days and report back.
  • Synetech
    Synetech over 11 years
    You’ll have to use #InstallKeybdHook for the key history to work correctly.
  • m4573r
    m4573r over 11 years
    Well I don't recall having installed anything special, but... maybe :)
  • Mechanical snail
    Mechanical snail over 11 years
    In my experience this is right, but some laptops may have Fn as a real scancode, so it would be worth trying the other solutions to see.
  • Murray Furtado
    Murray Furtado over 11 years
    Hmm, I can't get AHK to detect the Fn key. Looks like Marcks is right :-/
  • Murray Furtado
    Murray Furtado over 11 years
    Thanks, but I don't want to touch the Alt key because that will probably interfere too much with apps.
  • m4573r
    m4573r over 11 years
    Dammit. I just found out that the only reason I could remap this key is because fn+c is already assigned ot an action by default. When I want to assign another key it doesn't work :/ Sorry :(
  • avirk
    avirk over 11 years
    Alt+/C/V will not interact with the apps most probably. But if you think so then its depend on you with which key you find handy yourself :).
  • JdeBP
    JdeBP about 5 years
    No, they do not have Fn as a real scancode. They have an idiosyncratic I/O command that can be sent to the keyboard to instruct it on how to process these keys. askubuntu.com/a/787771/43344