Newyana2 <
[email protected]> wrote:
I have a keyboard that requires me to turn on F keys
"Turn on" F keys? F keys, if present, are always on, but they can be
mapped to different functions. Maybe you meant you use Fn to toggle the function of the F keys, like those keys have the standard F-key labels,
but also a separate and smaller and sometimes blue-colored label for an alternate function.
if I want to use them in software. Yet with them turned off, F10 opens Documents, F11 opens My Pictures, F12 opens My Music... I
accidentally hit them and it's a hassle. I've never used any of those
folders in any version of Windows. Is there a way to disconnect that alignment?
I deleted My Music and My Pictures, and so far that seems to work,
but I Documents holds numerous things, and F9 opens the Computer
window. So deleting is clearly not a solution.
Assuming you did not install any ancilliary software that came with the keyboard (which can redefine key scan codes, define macros, etc), there
are still the media keys defined in the Windows registry. That's why
media keyboards don't need any software to use the media keys (Mute,
volume Up/Down, Web, E-mail, foward/reverse/pause, etc). They media
keyboard issues the scan codes that are already defined in the Windows registry.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey
Under there are entries for the app (media) keys. Each media key on the keyboard sends a scan code that is listed under the AppKey entry.
Sounds great until you look to find the scan codes are listed under
AppKey, but there are no values defined within each scan code entry. I
suspect the mappings got moved into some Windows system library (maybe shell32.dll, but that's just a guess). With no value defined for a scan
code entry, the default gets used (back wherever the key mappings are
defined). I think back in Windows 7 that I could see the mappings
between scan code to function call, but not in Windows 10.
https://winaero.com/change-what-extra-app-keys-do-for-the-keyboard-in-windows-10-8-and-7/
Possibly you could add a ShellExecute item for the scan code entry that
would override wherever the media key mappings got moved.
If you installed software or a driver with the keyboard, well, you'll
have to check how to configure it to determine how it maps keys to what function. You said you "have a keyboard" which makes it sound like you separately purchased the keyboard. If, however, it is the keyboard on a laptop, usually the laptop maker bundles "drivers" on the laptop of
which one could be for keyboard mapping.
In the AppKey definitions mentioned in the WinAero article, none open
the Documents folder. You don't mention using a media key, but an F key
on the keyboard. I suspect you installed, or your computer came bundled
with, keyboard software that effects the mapping.
That F10 (and not Fn+F10) opens Explorer to the Documents folder sounds
like you have macro software installed for the keyboard. Possibly you
could use the Sharpkeys tool already mentioned by Ken to step on
whatever else is defining the macro for the F10, and other F keys. I'd
first try to find out who was defining and handling the F10 mapping
before trying to use yet another mapper trying to step atop the first.
"SharpKeys is not responsible for any of the keyboard remapping
functionality - it simply exposes a Registry key that controls how
Windows remaps keys and has been available to us since Windows 2000."
If SharpKeys is just exposing the AppKey registry settings, that won't
expose the F10 remapping. While SharpKeys mentions looking at and
modifying registry entries for key scan codes and mappings, it doesn't
mention WHERE it is looking for those scan code mappings. Perhaps it
will show where in the registry it will make changes. I did see in its
Readme notes about adding a ScanCode subkey under:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
The ScanCode Map subkey is binary, so not something you can read nor
edit. From elsewhere, someone mentioned the following gets used for
your Windows account (since it is under HKCU instead of HKLM):
https://www.tenforums.com/drivers-hardware/205395-some-keyboard-keys-have-been-turned-off-post2546103.html?s=1abac4b317d28aa70bc91c9901fe1b51#post2546103
but:
HKEY_CURRENT_USER\Keyboard Layout\Preload
looks to simply define which layout to use, not the key mappings. Mine
just as "1" data item with value of "409" which is US keyboard layout as
per Microsoft's article at:
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-language-pack-default-values?view=windows-11
Nowhere have I yet found default Windows mappings on F10, so I have to
wonder if you have software installed that does that mapping.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)