Jagailo / YetAnotherKeyDisplayer

App for displaying pressed keys of the keyboard
GNU General Public License v3.0
317 stars 15 forks source link

I cant get it working with riva tuner #11

Closed Obazzi closed 2 years ago

Obazzi commented 2 years ago

I have RivaTuner and YAKD running with the right setting enabled and it does not show anything in game. I tried restarting both programs multiple times, but no use. Furthermore, I know it is supposed to work because when I open MSI Afterburner it shows the all of my performance metrics in game, so it is not a problem with RivaTuner and the game but with RivaTuner and YAKD.

Jagailo commented 2 years ago

Hello, could you please provide what versions of programs you are using.

What games have you tried? Full screen or window mode?

Obazzi commented 2 years ago

Versions

Afterburner: 4.6.3 RivaTuner: 7.3.0 YAKD: 1.2.1

Games

Games I tried with YAKD and RivaTuner open:

All of them show the built-in RivaTuner FPS counter correctly, but I do not see any of my key presses. Also, when I start Afterburner, it displays the advanced information on screen. All the games were tried in full screen, but after I saw your message I tried A Story About My Uncle in windowed mode, and it still does not show my key presses but shows RivaTuner just fine.

Settings

Don't let my custom theme fool you, I am running Windows 10 Enterprise 2016 LTSB 64-bit witch is equivalent to Windows 10 Enterprise Ver. 1607 64-bit. image

Obazzi commented 2 years ago

I forgot to mention it, but the YAKD window option works flawlessly, and I can see all of my keyboard and mouse presses.

Jagailo commented 2 years ago

I was unable to reproduce your problem. But I also have newer versions of programs. Update RTSS to 7.3.2 Beta 5 (here) Also try the beta version of MSI Afterburner 4.6.4 image

Try the following steps:

  1. Launch YAKD;
  2. Select the RTSS mode;
  3. Make sure that RTSS has started (tray icon);
  4. Start MSI Afterburner.

Should work.

Watch the video demo

Jagailo commented 2 years ago

Could not reproduce the issue, the author did not leave additional comments.

r3sus commented 2 years ago

Hi. I do have issues with Dead Space 1 (DS1) (probably same with others games of series).

Window mode and RTSS stop working when the game is focused. It happens cuz the game hooks keyboard with SetWindowsHookExA and like swallows input. Assume many other old games using this method as well.

with x64dbg: disabling this function by making it return immediately or eliminating the call itself fixes the problem, but that's not solution for wide use.

I had the same issues with NohBoard, but there are OSD that worked with DS1: OBS plugin: https://github.com/univrsal/input-overlay AHK script (separate window): https://www.dcmembers.com/skrommel/download/showoff/

That would be useful for testing purposes to make YAKD add static label (or other mini indicator like red dot) to make sure it interacts with RTSS well, then troubleshoot keyboard hooking.

To test the keyboard hooking with this game, executable without assets might be enough (it creates black window).

I also sometimes get error when switching from windowed to RTSS:

The system cannot find the file specified. (Exception from HRESULT: 0x80070002)

P.S. Thanks a lot for great project!

scumware commented 2 years ago

I had reproduced this bug. If RTSS started befor YAKD or RTSS started befor clicking RTSSRadioButton then RTSSHandler._osd will not initialized and _osd?.Update(text); does nothing.

Jagailo commented 4 months ago

If anyone else encounters this problem, try to use YAKD 1.4 and the latest stable version of RTSS.