Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for keybon companion app, be able to disable switch layouts when window focus changes #12

Open
b4wii opened this issue Dec 26, 2023 · 8 comments

Comments

@b4wii
Copy link

b4wii commented Dec 26, 2023

trying to use this as a custom streamdeck, to be used with obs. but as the current iteration of keybon, there is no way to change the default screen, except changing the sketch in the Arduino ide, and there is no way to have the companion not switch layouts when the focus of the current window changes.

would be nice to have a toggle function to keep a certain layout active full-time, regardless of what window is active.
I'd edit the companion app myself, but I do not know enough c# to be able to add this functionality.

I realize that this is not a use for what keybon was originally intended for, but I think it could be used like a stream deck, just without all the fancy features of a stream deck. implemented.
I just would like to be able to have it send a few certain button presses for hotkeys for OBS Studio, but with the current version of keybon this is pretty much impossible without doing some major coding on my part.

@CoretechR
Copy link
Owner

That's a good idea. I never really thought about that but it would make sense.
Have you already built a working Keybon?

@b4wii
Copy link
Author

b4wii commented Dec 27, 2023

Yes. And when trying to set up companion it was kinda frustrating having it switch layouts all the time.

Ooops didn't mean to close this.

@b4wii b4wii closed this as completed Dec 27, 2023
@CoretechR CoretechR reopened this Dec 27, 2023
@CoretechR
Copy link
Owner

keybon companion b4wii.zip
I made some quick changes to allow modifying the default page. Could you try and see if that works for you?

@b4wii
Copy link
Author

b4wii commented Dec 28, 2023

okay, while it does let me make changes on the default screen, I don't seem to be able to make it function with the F13-F24 keys, even though sendkeys supports those keys. and that is what my hotkeys are set up for in my different programs.

@CoretechR
Copy link
Owner

That's strange. The function keys seem to work for me using {F5} for example. Can you try with this version again, please?
keybon companion b4wii.zip

@b4wii
Copy link
Author

b4wii commented Dec 28, 2023

okay, in testing, it seems to stop at F16. anything beyond for the f17-f24 does not work.

https://learn.microsoft.com/en-us/previous-versions/troubleshoot/winautomation/product-documentation/best-practices/valid-key-codes-for-the-send-keys-action

supposedly these are supported according to these tables. unless I am reading wrongly.

@CoretechR
Copy link
Owner

Oh, I thought all the function keys don't work. I must have misread that. Depending on where you look, the documentation lists F16 as the last working function key with the sendkeys method:
https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys.send?view=windowsdesktop-8.0

@b4wii
Copy link
Author

b4wii commented Dec 29, 2023

That could be the case and makes sense. Kinda disappointed that send keys only seems to support up to f16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants