WhatPulse Forums » Support » Client software v » Not counting remapped keys Welcome back, Guest.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not counting remapped keys
12-01-2013, 08:49 AM
Post: #1
Not counting remapped keys
In more recent versions (2.1+, and one older version before it) I noticed that the client stopped counting keys simulated by programs such as autohotkey.

Now this is a good thing, but here's the bad part:
Say you remap Q to type W. Whatpulse doesn't count W (which is good), but it no longer counts Q either. So if I need to remap some keys for playing certain games, those keys won't be counted at all.

Would be nice if it could be changed in such a way to keep tracking the original key regardless of whether it's remapped or not. And yes it's possible (I don't really know how though).

Note: I had to repost this from my original account (Robby250) because for some reason it's been unable to post on these forums for the past half year or so.
Find all posts by this user
Quote this message in a reply
12-01-2013, 09:23 AM
Post: #2
RE: Not counting remapped keys
Whatever program you're using the remap the keys, is blocking the real input event from WhatPulse and sends the fake input event to Windows, which is blocked. There is no way to count it in the client, because the real event has been blocked.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-01-2013, 11:04 AM (This post was last modified: 12-01-2013 11:07 AM by robby251.)
Post: #3
RE: Not counting remapped keys
Quote:There is no way to count it in the client, because the real event has been blocked.
But it's not blocked. I'll show you a short video since I don't really know how else to prove it. The program does require administrator rights to detect the "blocked" key, but I'm running Whatpulse as administrator and it's still not detecting it.

Video download

So what's happening in the video is this:
On the left is whatpulse, on the right another key counting program which works the way I'd like whatpulse to work.
Q is remapped to W.
I select the notepad, and I press Q several times on a line. Whatpulse doesn't detect the keys, but the other software does.
Then I type enter twice and press W several times on another line, which both whatpulse and the other program detect properly.
Find all posts by this user
Quote this message in a reply
12-01-2013, 11:51 AM
Post: #4
RE: Not counting remapped keys
The other program detects fake input events and shows them. It does not see the real input event, only the fake one. WhatPulse blocks fake input events and does not see the real event, so nothing happens.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-01-2013, 11:57 AM
Post: #5
RE: Not counting remapped keys
You probably didn't watch the video, because when I pressed Q it showed as W in the notepad, but was added correctly as Q in the other program. It wasn't a fake input.

If I assign more buttons to a single one the other program correctly detects only one button as well.
Find all posts by this user
Quote this message in a reply
12-01-2013, 12:03 PM (This post was last modified: 12-01-2013 12:04 PM by smitmartijn.)
Post: #6
RE: Not counting remapped keys
I did and saw what the program did. Thing is, it most likely received the fake event input and then did a translation of the key code it received. When translated, the key turns into the right key. But still while acting on the fake input event.

This should be fairly easy to check in that program, do you have a link?
Visit this user's website Find all posts by this user
Quote this message in a reply
12-01-2013, 12:06 PM (This post was last modified: 12-01-2013 12:15 PM by robby251.)
Post: #7
RE: Not counting remapped keys
Here, I doubt that it translates the input though, otherwise it would've detected the key when it wasn't running as administrator as well, but it didn't.

One more thing, Whatpulse still doesn't seem to detect keys pressed while holding the Alt modifier, I posted this around a year ago and I think you said that it doesn't happen to you when you try it. Well now I have everything completely new, such as computer and operating system (Windows 7 x64 bit), and it's still happening.

Basically:
Alt+key = only detects Alt
Shift/Ctrl+key = detects both
Alt+Shift+key = only detects Alt
Ctrl+Alt+key = detects everything
Ctrl+Alt+Shift+key = detects everything

Thanks.
Find all posts by this user
Quote this message in a reply
12-01-2013, 12:23 PM
Post: #8
RE: Not counting remapped keys
It does, I can see the API calls being made when hooking into it. The reason why it only translated when running as administrator, is because access to that information (scan/key codes, keyboard status), requires admin rights.

So unless the WhatPulse client goes from reactive to proactive; polling the keyboard instead of waiting for events, there's not really a way for it to catch them.

And polling isn't really an option, performance wise.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-01-2013, 12:26 PM
Post: #9
RE: Not counting remapped keys
Could you at least make an option in the settings to poll it for those who can afford the performance drop? Would be much appreciated.

Thanks a lot for looking into it though.
Find all posts by this user
Quote this message in a reply
12-01-2013, 12:29 PM
Post: #10
RE: Not counting remapped keys
Maybe. I'll put it on the case list. It'll require a complete overhaul of the current input hook, allowing for polling to be used, so it's not an easy or quick change.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Keys & Clicks not recording anymore DJLunacy 0 392 05-08-2019 05:05 PM
Last Post: DJLunacy
  Modifier keys not registered (shift, alt, ctrl, enter) teilvtiw 4 2,105 04-24-2019 04:14 PM
Last Post: ajencks1
  [CLOSED] Java Games are not counting? iOChris 3 878 10-31-2016 08:13 PM
Last Post: smitmartijn
  Connected to VPN Windows not counting anymore iOChris 1 763 10-27-2016 12:57 AM
Last Post: Ruben_Koster
  doesn't recognize keys Posergoth6667 1 970 05-09-2016 04:56 PM
Last Post: mupi
  CTRL+W Counting 00Eraser00 7 2,257 02-29-2016 10:01 AM
Last Post: 00Eraser00
  Total Clicks & Keys TotalBlank 4 1,532 02-02-2016 05:07 AM
Last Post: TotalBlank
  WP no key-counting mupi 1 832 01-16-2016 02:57 PM
Last Post: mupi
Question How can I count keys before keybindings(Karabiner)? kumamotone 0 852 12-22-2015 09:56 AM
Last Post: kumamotone
  [SOLVED] Since 2.6.1 average keys/clicks per day isn't changing any more [TBE]steven1366 6 2,568 06-25-2015 01:08 PM
Last Post: [TBE]steven1366

Forum Jump:


User(s) browsing this thread: 1 Guest(s)