The Ultimate Site of Worms Armageddon

One-Boards => Files Comments => Topic started by: Triad on September 30, 2013, 01:25 PM

Title: File #519, RemapKeys for W:A
Post by: Triad on September 30, 2013, 01:25 PM
Working perfectly, thank you for share :)
Title: Re: File #519, RemapKeys for W:A
Post by: BrunoReX on November 09, 2013, 06:00 PM
Thanks for updating this, StepS.

It shouldn't affect chat in the channels/lobby or the in-game chat?
If it's not supposed to affect in-game chat, it may not be working right.

Take this config to make WASD work as the arrow keys:
Quote[RemapKeys]
37=37,65
38=38,87
39=39,68
40=40,83

When you type A in the in game chat, the cursor types the letter and goes to the left side (and to the right side for D); to make a question mark in my keyboard, I need to press AltGr+W, that makes the chat window go up, and produces a question mark (Alt(Gr)+S also makes the chat window go down).
Title: Re: File #519, RemapKeys for W:A
Post by: StepS on November 09, 2013, 08:03 PM
Quote from: BrunoReX on November 09, 2013, 06:00 PM
Thanks for updating this, StepS.

It shouldn't affect chat in the channels/lobby or the in-game chat?
If it's not supposed to affect in-game chat, it may not be working right.

Take this config to make WASD work as the arrow keys:
Quote[RemapKeys]
37=37,65
38=38,87
39=39,68
40=40,83

When you type A in the in game chat, the cursor types the letter and goes to the left side (and to the right side for D); to make a question mark in my keyboard, I need to press AltGr+W, that makes the chat window go up, and produces a question mark (Alt(Gr)+S also makes the chat window go down).

arrow keys ≠ typing text keys. this is the default behavior of the game.
Title: Re: File #519, RemapKeys for W:A
Post by: Garf on January 18, 2014, 09:06 PM
Trying to use this, I get an error - can't load wkremapkeys.dll - error code 0x0..07e.

Edit: Figured that this is due to the madchook.dll missing from this archive. The one over on worms2d.info has the missing dll. Adding it and things work fine.
Title: Re: File #519, RemapKeys for W:A
Post by: StepS on January 19, 2014, 01:38 PM
Indeed, thanks for reminding, updated it here now
Title: Re: File #519, RemapKeys for W:A
Post by: StepS on February 12, 2014, 03:20 PM
Updated to version 1.0.0.5:
*REDACTED. MISINFORMATION*
Title: Re: File #519, RemapKeys for W:A
Post by: zippeurfou on February 12, 2014, 03:22 PM
Quote from: StepS on February 12, 2014, 03:20 PM
Updated to version 1.0.0.5: this update will be very important to ropers (who use multiple spacebars), as I have modified the way in which presscheck is done. Previously the check was very aggressive and dropped the excess keypress forever even if you later released the original key. It is now accomplished as it should have been, waiting for all mapkeys except the target one to be released then allowing the press to go through. This is also how it works on USB keyboards with two physical spacebars.
awesome dude !
Title: Re: File #519, RemapKeys for W:A
Post by: Maciej on February 12, 2014, 09:50 PM
Wow, this program doesn't affect to chat? Perfectly!
Title: Re: File #519, RemapKeys for W:A
Post by: Masta on February 12, 2014, 10:31 PM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: File #519, RemapKeys for W:A
Post by: Maciej on February 12, 2014, 10:49 PM
Quote from: Masta on February 12, 2014, 10:31 PM
Quote from: Maciej on February 12, 2014, 09:50 PM
Wow, this program doesn't affect to chat? Perfectly!

it almost doesn't affect the chat. f-keys are still bugged, that's why i don't use this module.
what i mean by bugged is: if you remap let's say f1 to w, and press "w" in the chat it will also press f1, and thus private message to whoever is on f1, which is quite annoying.

Hm, I use only z and x as spaces, don't remap F keys, so it shouldn't disturb me ;)
Title: Re: File #519, RemapKeys for W:A
Post by: Rabbzz on February 13, 2014, 08:14 AM
Nice stuff, I've been looking for something like this :)
Title: Re: File #519, RemapKeys for W:A
Post by: Hussar on February 13, 2014, 08:21 AM
I CANT remap F8 for any other key Steps :/

[RemapKeys]
32=88,90
119=16


and shift (16) not working
Title: Re: File #519, RemapKeys for W:A
Post by: StepS on February 13, 2014, 02:45 PM
Quote from: Berria on February 13, 2014, 08:21 AM
I CANT remap F8 for any other key Steps :/

[RemapKeys]
32=88,90
119=16


and shift (16) not working

it works for me. Also I noticed that you don't keep the original keys. If you want to preserve both the space and F8, you can do this:

Quote[RemapKeys]
32=32,88,90
119=119,16

are you using any other remapping programs that could possibly modify the default Shift keycode? Does this only happen with one shift button, or with all (Left/Right Shift)? I think it's possible to differentiate them by adding their mapping manually, which I'll do in the next update maybe.
Does remapping F8 to any other key work?

Quote from: Masta on February 12, 2014, 10:31 PMit almost doesn't affect the chat. f-keys are still bugged, that's why i don't use this module.
what i mean by bugged is: if you remap let's say f1 to w, and press "w" in the chat it will also press f1, and thus private message to whoever is on f1, which is quite annoying.

this is true, but this is how the game was designed! This could be overcome in future but the module will not be as simple anymore then :)
I'll let you know if I find something related to this.
Title: Re: File #519, RemapKeys for W:A
Post by: Maciej on February 13, 2014, 05:05 PM
ekhm, Steps... it works for rope race perfectly, but I tried to play bng, and all shots were suicides... I try to keep space pressed to get power but with this module it's not possible. Granades expode on me. It reads my press like one fast click even if I keep it pressed, what's wrong?
Title: Re: File #519, RemapKeys for W:A
Post by: StepS on February 13, 2014, 05:30 PM
Quote from: Maciej on February 13, 2014, 05:05 PM
ekhm, Steps... it works for rope race perfectly, but I tried to play bng, and all shots were suicides... I try to keep space pressed to get power but with this module it's not possible. Granades expode on me. It reads my press like one fast click even if I keep it pressed, what's wrong?

hmm, confirmed. Crap, well this is what you get when you try too hard to prevent the so-called double-press cheat...
Thanks, I'll try to resolve it ASAP.

UPDATE: thanks for your patience, version 1.0.0.6 has been released. Accidentally used "<=" instead of "==". Everyone is advised to update!
Note: the above described issue only affected version 1.0.0.5 (released yesterday), thanks to Maciej for discovering it.
Title: Re: File #519, RemapKeys for W:A
Post by: Hussar on February 14, 2014, 08:08 AM
everything works fine now. dunno why. maybe reboot helped :)
Title: Re: File #519, RemapKeys for W:A
Post by: Malevol3nt1 on February 20, 2014, 02:30 PM
Quote from: StepS on November 09, 2013, 08:03 PM
...

Hello StepS,

Mind if I ask a technical question? I'm just exploring and trying out keyboard hooking myself. Even though I can inspect the keys after setting up my hook function via SetWindowsHookExA I still can't seem to make modifications to the keys. WA still seems to get the original keys even when I manipulate wParam/lParam. I'm just curious how you worked around this.

Cheers.
Title: Re: File #519, RemapKeys for W:A
Post by: Malevol3nt1 on February 21, 2014, 03:34 PM
Quote from: Malevol3nt1 on February 20, 2014, 02:30 PM
I'm just curious how you worked around this.

Nevermind, figured it out. I'm using SendInput and checking LLKHF_INJECTED beforehand to avoid infinite loops.

How do you detect whether the chat area is visible though? I mean the key bindings should be disabled while chatting. Currently I'm just using a separate key to toggle the bindings on or off for my wormkit plugin.
Title: Re: File #519, RemapKeys for W:A
Post by: Masta on June 05, 2014, 02:51 PM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: File #519, RemapKeys for W:A
Post by: StepS on December 08, 2014, 01:32 AM
wkRemapKeys 1.2 has been released!
New:
Title: Re: File #519, RemapKeys for W:A
Post by: Sensei on June 06, 2015, 02:24 AM
I remaped space to letters S & D. Program is nice, but after few rope flies - space get's numb! yeah.. numb! It wont react, and i lose balance, hit the floor - lose turn.

Tried another program "intes keychange" - works perfect but cannot figure out how to set 2 keys for enable/disable program, very annoying when it interupts me in chatting, or even worse - hosting games.


Don't want to play with autohotkey script anymore, someone said to me it's considered as a cheat..


I need a solution for this situation, some good ReMap program, anything?? :( as long as it's not cheating!
Title: Re: File #519, RemapKeys for W:A
Post by: Rabbzz on May 27, 2016, 04:19 AM
I have NumAdd remapped as backspace and it works fine until Im using a grenade then it reverts back to a plus button and changes the bounce. Anyway to fix this?
Title: Re: File #519, RemapKeys for W:A
Post by: XanKriegor on May 27, 2016, 05:46 PM
EDIT: shit xD
Title: Re: File #519, RemapKeys for W:A
Post by: h3oCharles on May 27, 2016, 09:20 PM
I have 'I' set to F2 and 'O' set to Enter and you know QWERTY keyboards, I and O are next to eachother.

What I do in Big RR/Tower is whenever i have >1 sec left, I finger-roll 'I' and 'O', which selects and throws a nana, giving me retreat time.

I don't use it for competitive, tho
Title: Re: File #519, RemapKeys for W:A
Post by: StepS on May 28, 2016, 06:03 PM
Quote from: Rabbit on May 27, 2016, 04:19 AM
I have NumAdd remapped as backspace and it works fine until Im using a grenade then it reverts back to a plus button and changes the bounce. Anyway to fix this?
This is because your NumAdd key is still enabled (so is used whenever the game expects it to be used). If you Add "NumAdd = null", NumAdd will be disabled, and it will do the backflip even when grenades are selected.
Title: Re: File #519, RemapKeys for W:A
Post by: Rabbzz on May 28, 2016, 09:53 PM
Thank you, all working now  ;D
Title: Re: File #519, RemapKeys for W:A
Post by: Rabbzz on May 29, 2016, 06:35 AM
Also I have arrows on Num1, 2, 3, 5. And when I hold shift left to walk backward nothing moves and if I hold right shift the worms moves forward and keeps moving forward when i release the keys. I have to use original arrows for it to work. I tried having Num1, 2, 3, 5 = null and that didn't help.

Any ideas for that problem?
Title: Re: File #519, RemapKeys for W:A
Post by: StepS on May 29, 2016, 11:56 AM
Quote from: Rabbit on May 29, 2016, 06:35 AM
Also I have arrows on Num1, 2, 3, 5. And when I hold shift left to walk backward nothing moves and if I hold right shift the worms moves forward and keeps moving forward when i release the keys. I have to use original arrows for it to work. I tried having Num1, 2, 3, 5 = null and that didn't help.

Any ideas for that problem?
This is because the Shift key on the keyboard overrides the Num Lock enabled state (in all applications in Windows), so the game receives numlock-disabled inputs instead, when Shift is held down. You have a few options:
Title: Re: File #519, RemapKeys for W:A
Post by: Rabbzz on May 29, 2016, 12:19 PM
Thanks all fixed
Title: Re: File #519, RemapKeys for W:A
Post by: Rabbzz on June 02, 2016, 01:21 PM
Is there any possible way that this module is doing an extra space tap for me here and there, or is my brain just being silly??

After further testing I think its all in my head  :-X
Title: Re: File #519, RemapKeys for W:A
Post by: h3oCharles on June 02, 2016, 04:39 PM
Quote from: Rabbit on June 02, 2016, 01:21 PM
Is there any possible way that this module is doing an extra space tap for me here and there, or is my brain just being silly??

After further testing I think its all in my head  :-X

What do you have set as Space? Maybe you are hitting it by accident?
Title: Re: File #519, RemapKeys for W:A
Post by: Rabbzz on June 02, 2016, 05:56 PM
Quote from: TheMadCharles on June 02, 2016, 04:39 PM
Quote from: Rabbit on June 02, 2016, 01:21 PM
Is there any possible way that this module is doing an extra space tap for me here and there, or is my brain just being silly??

After further testing I think its all in my head  :-X

What do you have set as Space? Maybe you are hitting it by accident?
I have G and B, yes I think I am knocking it and my kb doesn't seem the best.