Difference between revisions of "WkRemapKeys"

From Worms Knowledge Base

Jump to: navigation, search
(Fixes)
m
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{lowercase title}}{{ParentArticle|[[WormKit]]}}
+
{{lowercase title}}
 +
{{ParentArticle|[[WormKit]]}}
 +
{{languages|en|wkRemapKeys|ru|wkRemapKeys/ru}}
 
{{Software_infobox
 
{{Software_infobox
 
| name = wkRemapKeys
 
| name = wkRemapKeys
 
| developer = [[People/Kawoosh|Kawoosh]], [[People/StepS|StepS]]
 
| developer = [[People/Kawoosh|Kawoosh]], [[People/StepS|StepS]]
| version = 1.0.0.3 / 28 September 2013
+
| version = 1.2.1 / 2 July 2020
 
| games = [[Worms Armageddon|W:A]]
 
| games = [[Worms Armageddon|W:A]]
| waver = 3.7.2.1 (Both)
+
| waver = 3.7+
 +
| waeditions = {{WA editions|cd|steam|gog}}
 
| language = C++
 
| language = C++
 
| license = Closed source
 
| license = Closed source
| download = [http://myfiles.my1.ru/wa/wk/wkRemapKeys.zip the archive (32.4 KB)]
+
| download = [https://worms2d.info/files/wkRemapKeys_1.2.1.zip RemapKeys 1.2.1 (64 kB)]
 
}}
 
}}
  
This [[WormKit]] module allows you to remap any keys on the keyboard. It works only during the game and doesn't affect chatting<ref name="loader-only">Chat is not affected, unless special control buttons are used as the remap targets (before the "=" sign). These include '''F1-F6''', '''F9''', '''Arrows''' (Up/Down/Left/Right), '''Backspace''' and '''Page Up'''. This is the default behavior of the game: these keys are essential for the chat to function properly. Space and Enter do not count.</ref>.
+
This [[WormKit]] module allows you to change bindings of any keys on the keyboard. It works only during the game and doesn't affect chatting (completely as of 1.2.0.0).
  
 
== How to use it ==
 
== How to use it ==
 
First of all, you need to have the "Load WormKit modules" option from Advanced settings enabled. Unpack the files into your W:A folder.
 
First of all, you need to have the "Load WormKit modules" option from Advanced settings enabled. Unpack the files into your W:A folder.
  
An example is written in the ini (settings file):
+
An example is written in the ini file:
  
 
<code>[RemapKeys]<br>
 
<code>[RemapKeys]<br>
32=32,90,88</code>
+
Space = Space, X, C</code>
  
What we do here is to remap Space (32) to Z (90) and X (88) while keeping the original Space functioning.
+
In this example, we bind Space to X and C keys while also letting the original spacebar work. If you don't want to keep the original key then simply don't include it in the mapping list (e.g., "F1 = Q" permanently changes F1 to Q, and only Q can now perform the function of F1).
  
The second example:
+
If you remap to keys that already perform some action by default (such as F-keys or grenade bounciness keys), you have to keep in mind that the original actions will take priority whenever the game expects them to be used, unless they are disabled or remapped to other keys. For example, if you remap Space to the + key, it will act as Space in all cases except when a grenade is selected: then it'll use its primary function of setting the bounciness to MAX. If that's not what you want, remap or disable the + key. To disable a key completely, map it to "null".
  
<code>119=119,17</code>
+
You can also use key codes instead of key names: in this case, insert # followed by the code. For example, insert #32 (decimal) or #0x20 (hexadecimal) for the Space key.
  
Remaps F8 to Ctrl, and keeps itself.
+
Symbolic key names are not case-sensitive. See the table below to know about possible names and codes.
  
{| class="wikitable collapsible collapsed" width="30%"
+
=== Key names and codes ===
 +
{| class="wikitable collapsible collapsed" width="50%"
 
|-
 
|-
!Key Codes
+
!Code
 +
!Symbolic name
 +
!Description
 
|-
 
|-
|8
+
|#8
 
|Backspace
 
|Backspace
 +
|Backspace key
 
|-
 
|-
|9
+
|#9
 
|Tab
 
|Tab
 +
|Tabulation key
 
|-
 
|-
|12
+
|#12
 
|Clear
 
|Clear
 +
|Clear key
 
|-
 
|-
|13
+
|#13
 
|Enter
 
|Enter
 +
|Enter key
 
|-
 
|-
|16
+
|#16
 
|Shift
 
|Shift
 +
|Shift key
 
|-
 
|-
|17
+
|#17
 
|Ctrl
 
|Ctrl
 +
|Control key
 
|-
 
|-
|18
+
|#18
 
|Alt
 
|Alt
 +
|Alt key
 
|-
 
|-
|19
+
|#19
 
|Pause
 
|Pause
 +
|Pause key
 
|-
 
|-
|20
+
|#20
|Caps Lock
+
|CapsLock
 +
|Caps Lock key
 
|-
 
|-
|27
+
|#27
|Escape
+
|Esc
 +
|Escape key
 
|-
 
|-
|32
+
|#32
 
|Space
 
|Space
 +
|Space key
 
|-
 
|-
|33
+
|#33
|Page Up
+
|PageUp
 +
|Page Up key
 
|-
 
|-
|34
+
|#34
|Page Down
+
|PageDown
 +
|Page Down key
 
|-
 
|-
|35
+
|#35
 
|End
 
|End
 +
|End key
 
|-
 
|-
|36
+
|#36
 
|Home
 
|Home
 +
|Home key
 
|-
 
|-
|37
+
|#37
|Left arrow
+
|Left
 +
|Left Arrow key
 
|-
 
|-
|38
+
|#38
|Up arrow
+
|Up
 +
|Up Arrow key
 
|-
 
|-
|39
+
|#39
|Right Arrow
+
|Right
 +
|Right Arrow key
 
|-
 
|-
|40
+
|#40
|Down Arrow
+
|Down
 +
|Down Arrow key
 
|-
 
|-
|41
+
|#41
 
|Select
 
|Select
 +
|Select key
 
|-
 
|-
|42
+
|#42
 
|Print
 
|Print
 +
|Print key
 
|-
 
|-
|43
+
|#43
 
|Execute
 
|Execute
 +
|Execute key
 
|-
 
|-
|44
+
|#44
 
|PrintScreen
 
|PrintScreen
 +
|PrintScreen key
 
|-
 
|-
|45
+
|#45
 
|Ins
 
|Ins
 +
|Insert key
 
|-
 
|-
|46
+
|#46
 
|Del
 
|Del
 +
|Delete key
 
|-
 
|-
|47
+
|#47
 
|Help
 
|Help
 +
|Help key
 
|-
 
|-
|48
+
|#48
 
|0
 
|0
 +
|0 key
 
|-
 
|-
|49
+
|#49
 
|1
 
|1
 +
|1 key
 
|-
 
|-
|50
+
|#50
 
|2
 
|2
 +
|2 key
 
|-
 
|-
|51
+
|#51
 
|3
 
|3
 +
|3 key
 
|-
 
|-
|52
+
|#52
 
|4
 
|4
 +
|4 key
 
|-
 
|-
|53
+
|#53
 
|5
 
|5
 +
|5 key
 
|-
 
|-
|54
+
|#54
 
|6
 
|6
 +
|6 key
 
|-
 
|-
|55
+
|#55
 
|7
 
|7
 +
|7 key
 
|-
 
|-
|56
+
|#56
 
|8
 
|8
 +
|8 key
 
|-
 
|-
|57
+
|#57
 
|9
 
|9
 +
|9 key
 
|-
 
|-
|65
+
|#65
 
|A
 
|A
 +
|A key
 
|-
 
|-
|66
+
|#66
 
|B
 
|B
 +
|B key
 
|-
 
|-
|67
+
|#67
 
|C
 
|C
 +
|C key
 
|-
 
|-
|68
+
|#68
 
|D
 
|D
 +
|D key
 
|-
 
|-
|69
+
|#69
 
|E
 
|E
 +
|E key
 
|-
 
|-
|70
+
|#70
 
|F
 
|F
 +
|F key
 
|-
 
|-
|71
+
|#71
 
|G
 
|G
 +
|G key
 
|-
 
|-
|72
+
|#72
 
|H
 
|H
 +
|H key
 
|-
 
|-
|73
+
|#73
 
|I
 
|I
 +
|I key
 
|-
 
|-
|74
+
|#74
 
|J
 
|J
 +
|J key
 
|-
 
|-
|75
+
|#75
 
|K
 
|K
 +
|K key
 
|-
 
|-
|76
+
|#76
 
|L
 
|L
 +
|L key
 
|-
 
|-
|77
+
|#77
 
|M
 
|M
 +
|M key
 
|-
 
|-
|78
+
|#78
 
|N
 
|N
 +
|N key
 
|-
 
|-
|79
+
|#79
 
|O
 
|O
 +
|O key
 
|-
 
|-
|80
+
|#80
 
|P
 
|P
 +
|P key
 
|-
 
|-
|81
+
|#81
 
|Q
 
|Q
 +
|Q key
 
|-
 
|-
|82
+
|#82
 
|R
 
|R
 +
|R key
 
|-
 
|-
|83
+
|#83
 
|S
 
|S
 +
|S key
 
|-
 
|-
|84
+
|#84
 
|T
 
|T
 +
|T key
 
|-
 
|-
|85
+
|#85
 
|U
 
|U
 +
|U key
 
|-
 
|-
|86
+
|#86
 
|V
 
|V
 +
|V key
 
|-
 
|-
|87
+
|#87
 
|W
 
|W
 +
|W key
 
|-
 
|-
|88
+
|#88
 
|X
 
|X
 +
|X key
 
|-
 
|-
|89
+
|#89
 
|Y
 
|Y
 +
|Y key
 
|-
 
|-
|90
+
|#90
 
|Z
 
|Z
 +
|Z key
 
|-
 
|-
|91
+
|#91
|Left Win
+
|LeftWin
 +
|Left Win key
 
|-
 
|-
|92
+
|#92
|Right Win
+
|RightWin
 +
|Right Win key
 
|-
 
|-
|93
+
|#93
|Apps (Menu)
+
|AppsWin
 +
|Apps (Menu) key
 
|-
 
|-
|95
+
|#95
 
|Sleep
 
|Sleep
 +
|Sleep key
 
|-
 
|-
|96
+
|#96
|Numpad 0 *
+
|Num0
 +
|Numpad 0 key <ref name="NumpadNumbers">Numbers on the numpad are only available when Num Lock is toggled on.</ref>
 
|-
 
|-
|97
+
|#97
|Numpad 1 *
+
|Num1
 +
|Numpad 1 key
 
|-
 
|-
|98
+
|#98
|Numpad 2 *
+
|Num2
 +
|Numpad 2 key
 
|-
 
|-
|99
+
|#99
|Numpad 3 *
+
|Num3
 +
|Numpad 3 key
 
|-
 
|-
|100
+
|#100
|Numpad 4 *
+
|Num4
 +
|Numpad 4 key
 
|-
 
|-
|101
+
|#101
|Numpad 5 *
+
|Num5
 +
|Numpad 5 key
 
|-
 
|-
|102
+
|#102
|Numpad 6 *
+
|Num6
 +
|Numpad 6 key
 
|-
 
|-
|103
+
|#103
|Numpad 7 *
+
|Num7
 +
|Numpad 7 key
 
|-
 
|-
|104
+
|#104
|Numpad 8 *
+
|Num8
 +
|Numpad 8 key
 
|-
 
|-
|105
+
|#105
|Numpad 9 *
+
|Num9
 +
|Numpad 9 key
 
|-
 
|-
|106
+
|#106
|Multiply
+
|NumMultiply
 +
|Numpad Multiply (*) key
 
|-
 
|-
|107
+
|#107
|Add
+
|NumAdd
 +
|Numpad Add (+) key
 
|-
 
|-
|108
+
|#108
|Separator
+
|NumEnter
 +
|Numpad Separator key <ref name="NumpadSeparator">This keycode probably doesn't work (or do anything) on Windows systems.</ref>
 
|-
 
|-
|109
+
|#109
|Substract
+
|NumSubtract
 +
|Numpad Subtract (-) key
 
|-
 
|-
|110
+
|#110
|Decimal
+
|NumDecimal
 +
|Numpad Decimal (.) key
 
|-
 
|-
|111
+
|#111
|Divide ( Numpad '''/''' )
+
|NumDivide
 +
|Numpad Divide (/) key
 
|-
 
|-
|112
+
|#112
 
|F1
 
|F1
 +
|F1 key
 
|-
 
|-
|113
+
|#113
 
|F2
 
|F2
 +
|F2 key
 
|-
 
|-
|114
+
|#114
 
|F3
 
|F3
 +
|F3 key
 
|-
 
|-
|115
+
|#115
 
|F4
 
|F4
 +
|F4 key
 
|-
 
|-
|116
+
|#116
 
|F5
 
|F5
 +
|F5 key
 
|-
 
|-
|117
+
|#117
 
|F6
 
|F6
 +
|F6 key
 
|-
 
|-
|118
+
|#118
 
|F7
 
|F7
 +
|F7 key
 
|-
 
|-
|119
+
|#119
 
|F8
 
|F8
 +
|F8 key
 
|-
 
|-
|120
+
|#120
 
|F9
 
|F9
 +
|F9 key
 
|-
 
|-
|121
+
|#121
 
|F10
 
|F10
 +
|F10 key
 
|-
 
|-
|122
+
|#122
 
|F11
 
|F11
 +
|F11 key
 
|-
 
|-
|123
+
|#123
 
|F12
 
|F12
 +
|F12 key
 
|-
 
|-
|124
+
|#124
 
|F13
 
|F13
 +
|F13 key
 
|-
 
|-
|125
+
|#125
 
|F14
 
|F14
 +
|F14 key
 
|-
 
|-
|126
+
|#126
 
|F15
 
|F15
 +
|F15 key
 
|-
 
|-
|127
+
|#127
 
|F16
 
|F16
 +
|F16 key
 
|-
 
|-
|128
+
|#128
 
|F17
 
|F17
 +
|F17 key
 
|-
 
|-
|129
+
|#129
 
|F18
 
|F18
 +
|F18 key
 
|-
 
|-
|130
+
|#130
 
|F19
 
|F19
 +
|F19 key
 
|-
 
|-
|131
+
|#131
 
|F20
 
|F20
 +
|F20 key
 
|-
 
|-
|132
+
|#132
 
|F21
 
|F21
 +
|F21 key
 
|-
 
|-
|133
+
|#133
 
|F22
 
|F22
 +
|F22 key
 
|-
 
|-
|134
+
|#134
 
|F23
 
|F23
 +
|F23 key
 
|-
 
|-
|135
+
|#135
 
|F24
 
|F24
 +
|F24 key
 
|-
 
|-
|144
+
|#144
|Num Lock
+
|NumLock
 +
|Num Lock key
 
|-
 
|-
|145
+
|#145
|Scroll Lock
+
|ScrollLock
 +
|Scroll Lock key
 
|-
 
|-
|186
+
|#186
|''';:''' **
+
|OemColon
 +
|''';:''' key <ref name="OemUSLayout">This description is valid for standard US QWERTY keyboards; it may be different on nationalized latinic keyboards.</ref>
 
|-
 
|-
|187
+
|#187
|'''+=''' **
+
|OemPlus
 +
|'''+=''' key
 
|-
 
|-
|188
+
|#188
|''',<''' **
+
|OemComma
 +
|''',<''' key
 
|-
 
|-
|189
+
|#189
|'''-_''' **
+
|OemMinus
 +
|'''-_''' key
 
|-
 
|-
|190
+
|#190
|'''.>''' **
+
|OemPeriod
 +
|'''.>''' key
 
|-
 
|-
|191
+
|#191
|'''/?''' **
+
|OemQuestionmark
 +
|'''/?''' key <ref name="OemUSLayout" />
 
|-
 
|-
|192
+
|#192
|'''`~''' **
+
|OemTilde
 +
|'''`~''' key <ref name="OemUSLayout" />
 
|-
 
|-
|219
+
|#219
|'''[{''' **
+
|OemLeftBracket
 +
|'''<nowiki>[{</nowiki>''' key <ref name="OemUSLayout" />
 
|-
 
|-
|220
+
|#220
|'''|\''' **
+
|OemVerticalBar
 +
|'''<nowiki>|\</nowiki>''' key <ref name="OemUSLayout" />
 
|-
 
|-
|222
+
|#221
|''''"''' **
+
|OemRightBracket
 +
|'''<nowiki>]}</nowiki>''' key <ref name="OemUSLayout" />
 
|-
 
|-
|{{clear}}
+
|#222
|{{clear}}
+
|OemQuote
<nowiki>*</nowiki> - Requires numlock to be on.<br />
+
|'''<nowiki>'"</nowiki>''' key <ref name="OemUSLayout" />
<nowiki>**</nowiki> - US QWERTY information, may differ by keyboards.
+
 
|}
 
|}
  
== Notes ==
 
 
<references/>
 
<references/>
 
== Links ==
 
[http://myfiles.my1.ru/wa/wk/keycodes.html The list of Key Codes (decimal format)]
 

Latest revision as of 14:47, 26 December 2020

(Up to WormKit)
In other languages: English (en) • русский (ru) • +/-
wkRemapKeys
Developer: Kawoosh, StepS
Latest version: 1.2.1 / 2 July 2020
Supported games: W:A
Supported W:A version: 3.7+
Supported W:A editions: This item is compatible with the CD edition of W:A.  This item is compatible with the Steam edition of W:A.This item is compatible with the GOG edition of W:A.
Language: C++
License: Closed source
Download: RemapKeys 1.2.1 (64 kB)

This WormKit module allows you to change bindings of any keys on the keyboard. It works only during the game and doesn't affect chatting (completely as of 1.2.0.0).

How to use it

First of all, you need to have the "Load WormKit modules" option from Advanced settings enabled. Unpack the files into your W:A folder.

An example is written in the ini file:

[RemapKeys]
Space = Space, X, C

In this example, we bind Space to X and C keys while also letting the original spacebar work. If you don't want to keep the original key then simply don't include it in the mapping list (e.g., "F1 = Q" permanently changes F1 to Q, and only Q can now perform the function of F1).

If you remap to keys that already perform some action by default (such as F-keys or grenade bounciness keys), you have to keep in mind that the original actions will take priority whenever the game expects them to be used, unless they are disabled or remapped to other keys. For example, if you remap Space to the + key, it will act as Space in all cases except when a grenade is selected: then it'll use its primary function of setting the bounciness to MAX. If that's not what you want, remap or disable the + key. To disable a key completely, map it to "null".

You can also use key codes instead of key names: in this case, insert # followed by the code. For example, insert #32 (decimal) or #0x20 (hexadecimal) for the Space key.

Symbolic key names are not case-sensitive. See the table below to know about possible names and codes.

Key names and codes

  1. Numbers on the numpad are only available when Num Lock is toggled on.
  2. This keycode probably doesn't work (or do anything) on Windows systems.
  3. 3.0 3.1 3.2 3.3 3.4 3.5 3.6 This description is valid for standard US QWERTY keyboards; it may be different on nationalized latinic keyboards.
Personal tools