bitfocus / companion-module-vicreo-hotkey

MIT License
13 stars 7 forks source link

Window App Focus Problem #54

Closed Nevadadave closed 2 years ago

Nevadadave commented 2 years ago

This maybe a user error, but Iam having a problem I can't figure out. I can only get applications to receive Hot Keys when their window has focus. If I press the same Hot Key on a physical keyboard all apps receive the Hot Key regardless of focus status. Windows 10 21H2
Bitfocus Companion 2.2.2 Vicreo 5.0.0 (Basic)

JeffreyDavidsz commented 2 years ago

Not an error. The listener is a keyboard emulator. The normal behavior should be that the commands only work on the focused screen. There are applications that fetch all keyboard actions. So my guess you have one or more of them running. For example when you hit alt+f4 it won't close all your applications, but only the ones that have focus. Which applications are you running?

Nevadadave commented 2 years ago

Thanks So Much! for looking at my problem.

More details about my setup

2 Screen PC set up

OBS on screen 1, A browser (Edge) on screen 2 (doing screen capture)

I am not using Elgato Stream Deck hardware.

Companion is running on a different computer (VIA Web Buttons)

If the browser has focus, OBS will not receive hot keys (Alt 1, Alt 2, Alt 3 …).

Vicreo Listener’s log always shows proper hot key events.

If OBS has focus, OBS always receives hot key presses (VIA Companion).

If I use physical keyboard OBS will receive hot Keys when the browser has focus.

I am using a Logitech wireless mouse and keyboard, have you heard of their driver interfering?

From: Jeffrey Davidsz @. Sent: Sunday, June 19, 2022 1:02 AM To: bitfocus/companion-module-vicreo-hotkey @.> Cc: Nevadadave @.>; Author @.> Subject: Re: [bitfocus/companion-module-vicreo-hotkey] Window App Focus Problem (Issue #54)

Not an error. The listener is a keyboard emulator. The normal behavior should be that the commands only work on the focused screen. There are applications that fetch all keyboard actions. So my guess you have one or more of them running. For example when you hit alt+f4 it won't close all your applications, but only the ones that have focus. Which applications are you r Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-vicreo-hotkey/issues/54#issuecomment-1159647811 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6O4MRQC3PXPC5O6T2FAELVP3HYXANCNFSM5ZFHB32Q . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AB6O4MXNESTLV34EXV3WP3DVP3HYXA5CNFSM5ZFHB322YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIUPNEQY.gif Message ID: @. @.> >

JeffreyDavidsz commented 2 years ago

I understand your issue, but there is nothing I can do about that unfortunately. Its the way OBS listens to incoming keys

bryce-seifert commented 2 years ago

@Nevadadave You could also try using the OBS module in Companion to control OBS, that should allow you to send actions (or even OBS hotkeys) while it's not in focus

Nevadadave commented 2 years ago

I am using the companion module to switch scenes, but I use hot keys to trigger move transitions & and for muting mics.

From: bryce @. Sent: Monday, July 18, 2022 5:44 PM To: bitfocus/companion-module-vicreo-hotkey @.> Cc: Nevadadave @.>; Mention @.> Subject: Re: [bitfocus/companion-module-vicreo-hotkey] Window App Focus Problem (Issue #54)

@Nevadadave https://github.com/Nevadadave You could also try using the OBS module in Companion to control OBS, that should allow you to send actions (or even OBS hotkeys) while it's not in focus

— Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-vicreo-hotkey/issues/54#issuecomment-1188473430 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6O4MXR55D7R552G34M6QLVUX25NANCNFSM5ZFHB32Q . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AB6O4MR37LBFSS3CX24UCO3VUX25NA5CNFSM5ZFHB322YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI3LKUVQ.gif Message ID: @. @.> >

bryce-seifert commented 2 years ago

@Nevadadave I would recommend looking at the Trigger Hotkey by Key action in the OBS module.

Nevadadave commented 1 year ago

Thank You , Thank You , Thank You.

I was in the process of programming up a ESP32 to be a web server and a HID keyboard device to press keys on a GET request.

From: bryce @. Sent: Monday, July 18, 2022 6:01 PM To: bitfocus/companion-module-vicreo-hotkey @.> Cc: Nevadadave @.>; Mention @.> Subject: Re: [bitfocus/companion-module-vicreo-hotkey] Window App Focus Problem (Issue #54)

@Nevadadave https://github.com/Nevadadave I would recommend looking at the Trigger Hotkey by Key action in the OBS module.

— Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-vicreo-hotkey/issues/54#issuecomment-1188481910 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6O4MUV6GWS6T4TLPFDEWLVUX43BANCNFSM5ZFHB32Q . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AB6O4MQCWFNQVLHG4Z2F3STVUX43BA5CNFSM5ZFHB322YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI3LMW5Q.gif Message ID: @. @.> >