topeterk / HitCounterManager

Free Hit Counter / Death Counter that is running in the background, so you can focus on your stream. No need to keep any windows open for a window capture any more. Initially designed for Dark Souls and similar games but supports any game.
MIT License
86 stars 20 forks source link

Hotkeys only partially register #13

Closed EonofAeon closed 5 years ago

EonofAeon commented 5 years ago

Trying to set up Hit Counter's hotkeys to work with the shortcut buttons of another app hosted on Github https://github.com/rivafarabi/deckboard but it doesn't seem to work....I'm not sure if the problem lies with HCM or Deckboard, but after a week with no response from them, figured I'd cross post here as well.

Effectively, I'm trying to set it up so the digital 'buttons' for Deckboard (think Streamdeck for one's phone/tablet) will activate the Hotkey functionality of HCM, so I can press the button on the Deckboard screen and have it register a 'hit' or a Next/Previous split press...but none of them seem to register when the buttons are pressed on Deckboard. Hotkeys were obviously originally Shift + F6 through Shift + F10, but I even tried swapping them to shift + letters (Shift + H, Shift + N, etc.). Both the Shift + F's and the current Shift + Letter hotkey seem to work when done on keyboard but not on DB.

I've tried telling Deckboard to 'run on' deckboard, as well as on hitcounter itself.

Nothing seems to work and I'm kind of at a total loss...Figure maybe you can realize/test/figure out something I can't, since DB's devs seem unable/unwilling to answer.

topeterk commented 5 years ago

For reference: Ticket at deckboard

topeterk commented 5 years ago

Hi, as I don't know the program in detail, this might not be the best solution but it worked for me.

Trying to use the "Keyboard Macro" didn't work for me. Even with Notepad.exe as target and defining just the "L" key, Notepad never wrote the letter "L".

However HCM seems to be working with the "Advanced Keyboard Macro". As there is no target Window that must be set, it seems to simulate the key press system wide. Therefore the HCM registers the key in both modes (synchonous and asynchronous) which is quite nice. Test was done with CTRL+F11, however, to setup the key correctly I pressed and released CTRL once and pressed and released F11 once to have each key in the list separately. As second step I moved the DOWN entries up and the UP once down which will trigger the "hot key" right in the middle while both keys are down. A delay doesn't seem to be necessary for me but if it not works try a value of 20 ms or better more as, in asynchronous mode, this is the frequency of the HCM checking the keys.

Here is a picture of my setup: CtrlF11HotkeyOK

I hope this works on your side, too. Please let me know the results then we can close this issue officially.

Cheers!

topeterk commented 5 years ago

I'm closing this for now. Please reopen or contact me if there are further issues. (Or use the discussion that may still be open at the deckboard project).