Difference between revisions of "WkRemapKeys"

From Worms Knowledge Base

Jump to: navigation, search
m
 
(18 intermediate revisions by 2 users 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 = wkKeyRemap
+
| name = wkRemapKeys
| developer = [[People/Kawoosh|Kawoosh]]
+
| developer = [[People/Kawoosh|Kawoosh]], [[People/StepS|StepS]]
| version = 1.0 / 30 July 2012
+
| version = 1.2.1 / 2 July 2020
 
| games = [[Worms Armageddon|W:A]]
 
| games = [[Worms Armageddon|W:A]]
| waver = 3.6.31.0
+
| waver = 3.7+
 +
| waeditions = {{WA editions|cd|steam|gog}}
 
| language = C++
 
| language = C++
 
| license = Closed source
 
| license = Closed source
| download = [https://dl.dropbox.com/u/48532592/wa/wk/wkKeyRemap.zip the archive (25.5 KB)] [http://myfiles.my1.ru/wa/wk/wkKeyRemap.zip mirror]
+
| 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.
+
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 must have [[WormKit]] or [[WormKitDS]] installed. 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>[KeyRemap]<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.
  
== Links ==
+
=== Key names and codes ===
[http://myfiles.my1.ru/wa/wk/keycodes.html The list of Key Codes (decimal format)]
+
{| class="wikitable collapsible collapsed" width="50%"
 +
|-
 +
!Code
 +
!Symbolic name
 +
!Description
 +
|-
 +
|#8
 +
|Backspace
 +
|Backspace key
 +
|-
 +
|#9
 +
|Tab
 +
|Tabulation key
 +
|-
 +
|#12
 +
|Clear
 +
|Clear key
 +
|-
 +
|#13
 +
|Enter
 +
|Enter key
 +
|-
 +
|#16
 +
|Shift
 +
|Shift key
 +
|-
 +
|#17
 +
|Ctrl
 +
|Control key
 +
|-
 +
|#18
 +
|Alt
 +
|Alt key
 +
|-
 +
|#19
 +
|Pause
 +
|Pause key
 +
|-
 +
|#20
 +
|CapsLock
 +
|Caps Lock key
 +
|-
 +
|#27
 +
|Esc
 +
|Escape key
 +
|-
 +
|#32
 +
|Space
 +
|Space key
 +
|-
 +
|#33
 +
|PageUp
 +
|Page Up key
 +
|-
 +
|#34
 +
|PageDown
 +
|Page Down key
 +
|-
 +
|#35
 +
|End
 +
|End key
 +
|-
 +
|#36
 +
|Home
 +
|Home key
 +
|-
 +
|#37
 +
|Left
 +
|Left Arrow key
 +
|-
 +
|#38
 +
|Up
 +
|Up Arrow key
 +
|-
 +
|#39
 +
|Right
 +
|Right Arrow key
 +
|-
 +
|#40
 +
|Down
 +
|Down Arrow key
 +
|-
 +
|#41
 +
|Select
 +
|Select key
 +
|-
 +
|#42
 +
|Print
 +
|Print key
 +
|-
 +
|#43
 +
|Execute
 +
|Execute key
 +
|-
 +
|#44
 +
|PrintScreen
 +
|PrintScreen key
 +
|-
 +
|#45
 +
|Ins
 +
|Insert key
 +
|-
 +
|#46
 +
|Del
 +
|Delete key
 +
|-
 +
|#47
 +
|Help
 +
|Help key
 +
|-
 +
|#48
 +
|0
 +
|0 key
 +
|-
 +
|#49
 +
|1
 +
|1 key
 +
|-
 +
|#50
 +
|2
 +
|2 key
 +
|-
 +
|#51
 +
|3
 +
|3 key
 +
|-
 +
|#52
 +
|4
 +
|4 key
 +
|-
 +
|#53
 +
|5
 +
|5 key
 +
|-
 +
|#54
 +
|6
 +
|6 key
 +
|-
 +
|#55
 +
|7
 +
|7 key
 +
|-
 +
|#56
 +
|8
 +
|8 key
 +
|-
 +
|#57
 +
|9
 +
|9 key
 +
|-
 +
|#65
 +
|A
 +
|A key
 +
|-
 +
|#66
 +
|B
 +
|B key
 +
|-
 +
|#67
 +
|C
 +
|C key
 +
|-
 +
|#68
 +
|D
 +
|D key
 +
|-
 +
|#69
 +
|E
 +
|E key
 +
|-
 +
|#70
 +
|F
 +
|F key
 +
|-
 +
|#71
 +
|G
 +
|G key
 +
|-
 +
|#72
 +
|H
 +
|H key
 +
|-
 +
|#73
 +
|I
 +
|I key
 +
|-
 +
|#74
 +
|J
 +
|J key
 +
|-
 +
|#75
 +
|K
 +
|K key
 +
|-
 +
|#76
 +
|L
 +
|L key
 +
|-
 +
|#77
 +
|M
 +
|M key
 +
|-
 +
|#78
 +
|N
 +
|N key
 +
|-
 +
|#79
 +
|O
 +
|O key
 +
|-
 +
|#80
 +
|P
 +
|P key
 +
|-
 +
|#81
 +
|Q
 +
|Q key
 +
|-
 +
|#82
 +
|R
 +
|R key
 +
|-
 +
|#83
 +
|S
 +
|S key
 +
|-
 +
|#84
 +
|T
 +
|T key
 +
|-
 +
|#85
 +
|U
 +
|U key
 +
|-
 +
|#86
 +
|V
 +
|V key
 +
|-
 +
|#87
 +
|W
 +
|W key
 +
|-
 +
|#88
 +
|X
 +
|X key
 +
|-
 +
|#89
 +
|Y
 +
|Y key
 +
|-
 +
|#90
 +
|Z
 +
|Z key
 +
|-
 +
|#91
 +
|LeftWin
 +
|Left Win key
 +
|-
 +
|#92
 +
|RightWin
 +
|Right Win key
 +
|-
 +
|#93
 +
|AppsWin
 +
|Apps (Menu) key
 +
|-
 +
|#95
 +
|Sleep
 +
|Sleep key
 +
|-
 +
|#96
 +
|Num0
 +
|Numpad 0 key <ref name="NumpadNumbers">Numbers on the numpad are only available when Num Lock is toggled on.</ref>
 +
|-
 +
|#97
 +
|Num1
 +
|Numpad 1 key
 +
|-
 +
|#98
 +
|Num2
 +
|Numpad 2 key
 +
|-
 +
|#99
 +
|Num3
 +
|Numpad 3 key
 +
|-
 +
|#100
 +
|Num4
 +
|Numpad 4 key
 +
|-
 +
|#101
 +
|Num5
 +
|Numpad 5 key
 +
|-
 +
|#102
 +
|Num6
 +
|Numpad 6 key
 +
|-
 +
|#103
 +
|Num7
 +
|Numpad 7 key
 +
|-
 +
|#104
 +
|Num8
 +
|Numpad 8 key
 +
|-
 +
|#105
 +
|Num9
 +
|Numpad 9 key
 +
|-
 +
|#106
 +
|NumMultiply
 +
|Numpad Multiply (*) key
 +
|-
 +
|#107
 +
|NumAdd
 +
|Numpad Add (+) key
 +
|-
 +
|#108
 +
|NumEnter
 +
|Numpad Separator key <ref name="NumpadSeparator">This keycode probably doesn't work (or do anything) on Windows systems.</ref>
 +
|-
 +
|#109
 +
|NumSubtract
 +
|Numpad Subtract (-) key
 +
|-
 +
|#110
 +
|NumDecimal
 +
|Numpad Decimal (.) key
 +
|-
 +
|#111
 +
|NumDivide
 +
|Numpad Divide (/) key
 +
|-
 +
|#112
 +
|F1
 +
|F1 key
 +
|-
 +
|#113
 +
|F2
 +
|F2 key
 +
|-
 +
|#114
 +
|F3
 +
|F3 key
 +
|-
 +
|#115
 +
|F4
 +
|F4 key
 +
|-
 +
|#116
 +
|F5
 +
|F5 key
 +
|-
 +
|#117
 +
|F6
 +
|F6 key
 +
|-
 +
|#118
 +
|F7
 +
|F7 key
 +
|-
 +
|#119
 +
|F8
 +
|F8 key
 +
|-
 +
|#120
 +
|F9
 +
|F9 key
 +
|-
 +
|#121
 +
|F10
 +
|F10 key
 +
|-
 +
|#122
 +
|F11
 +
|F11 key
 +
|-
 +
|#123
 +
|F12
 +
|F12 key
 +
|-
 +
|#124
 +
|F13
 +
|F13 key
 +
|-
 +
|#125
 +
|F14
 +
|F14 key
 +
|-
 +
|#126
 +
|F15
 +
|F15 key
 +
|-
 +
|#127
 +
|F16
 +
|F16 key
 +
|-
 +
|#128
 +
|F17
 +
|F17 key
 +
|-
 +
|#129
 +
|F18
 +
|F18 key
 +
|-
 +
|#130
 +
|F19
 +
|F19 key
 +
|-
 +
|#131
 +
|F20
 +
|F20 key
 +
|-
 +
|#132
 +
|F21
 +
|F21 key
 +
|-
 +
|#133
 +
|F22
 +
|F22 key
 +
|-
 +
|#134
 +
|F23
 +
|F23 key
 +
|-
 +
|#135
 +
|F24
 +
|F24 key
 +
|-
 +
|#144
 +
|NumLock
 +
|Num Lock key
 +
|-
 +
|#145
 +
|ScrollLock
 +
|Scroll Lock key
 +
|-
 +
|#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
 +
|OemPlus
 +
|'''+=''' key
 +
|-
 +
|#188
 +
|OemComma
 +
|''',<''' key
 +
|-
 +
|#189
 +
|OemMinus
 +
|'''-_''' key
 +
|-
 +
|#190
 +
|OemPeriod
 +
|'''.>''' key
 +
|-
 +
|#191
 +
|OemQuestionmark
 +
|'''/?''' key <ref name="OemUSLayout" />
 +
|-
 +
|#192
 +
|OemTilde
 +
|'''`~''' key <ref name="OemUSLayout" />
 +
|-
 +
|#219
 +
|OemLeftBracket
 +
|'''<nowiki>[{</nowiki>''' key <ref name="OemUSLayout" />
 +
|-
 +
|#220
 +
|OemVerticalBar
 +
|'''<nowiki>|\</nowiki>''' key <ref name="OemUSLayout" />
 +
|-
 +
|#221
 +
|OemRightBracket
 +
|'''<nowiki>]}</nowiki>''' key <ref name="OemUSLayout" />
 +
|-
 +
|#222
 +
|OemQuote
 +
|'''<nowiki>'"</nowiki>''' key <ref name="OemUSLayout" />
 +
|}
 +
 
 +
<references/>

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