remapeamento de teclado
Citando a Wikipédia:
A scancode (or scan code) is the data that most computer keyboards send to a computer to report which keys have been pressed. A number, or sequence of numbers, is assigned to each key on the keyboard.
Desde o Windows 2000, o valor do registro Scancode Map pode ser usado para remapear uma chave para outra ou desabilitá-la completamente. Os mapeamentos de código de verificação são armazenados na seguinte chave do Registro:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
In the
Keyboard Layoutkey, theScancode Mapvalue must be added. This value is of typeREG_BINARY(little Endian format) and has the data format specified in the following table.
Start offset (in bytes) | Size (bytes) | Data
---------------------------------------------------------------------
0 | 4 | Header: Version Information
4 | 4 | Header: Flags
8 | 4 | Header: Number of Mappings
12 | 4 | Individual Mapping
... | ... | ...
Last 4 bytes | 4 | Null Terminator (0x00000000)
The first and second
DWORDSstore header information and should be set to all zeroes for the current version of the Scan Code Mapper. The thirdDWORDentry holds a count of the total number of mappings that follow, including the null terminating mapping. The minimum count would therefore be 1 (no mappings specified). The individual mappings follow the header. Each mapping is oneDWORDin length and is divided into twoWORDlength fields. EachWORDfield stores the scan code for a key to be mapped.Source: Keyboard and mouse class drivers
Edição manual do registro
-
Abra um prompt de comando como administrador.
-
Digite ou cole o seguinte comando e pressione Enter :
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d 00000000000000000200000037e0640000000000 /fNesse caso, há apenas um mapeamento: a chave F13 (scancode
0x0064). É remapeado para0xe037, que é a tecla Print Screen. -
Faça logoff ou reinicie o Windows para aplicar as alterações.
Usando SharpKeys
SharpKeys is a utility that manages a Registry key that allows Windows to remap one key to any other key. Included in the application is a list of common keyboard keys and a Type Key feature to automatically recognize most keyboard keys.
Nota A versão mais recente requer o .NET Framework 4.x para funcionar. Você pode obter uma versão mais antiga se precisar executá-la com o .NET Framework 2.0 / 3.x. Uma versão portátil também está disponível.
-
Faça o download e execute SharpKeys .
-
Clique em Adicionar , selecione Função: F13 (00_64) na lista e mapeie-o para Especial: PrtSc (E0_37) e, em seguida, clique em OK .
-
Clique em Gravar no registro e efetue logoff ou reinicie o Windows para aplicar as alterações.