O
OpenDeckโ€ข3w ago
PervyJokerr

Cant get Keybindings to work

i am absolutely going nuts over this and i have been trying for quite a while with this and that is to get my key bindings to work with my Mirabox HSV293S. i use the Input Simulation and have tried ALOT of different ways to get this to work. i tried with ydotoold with for example this command "ydotool key 29:1 46:1 46:0 29:0". and tried to fill in "Alt + C" in the push down and up. i tried this "k(alt_left, p), k(c, p)" and also this method "key 56:1 46:1 46:0 56:0" but nothing wants to work. i tested the pad with this cli tool to see if it registres the buttons on the pad and it does show activity on presses. it shows up in the software that the pad has been selected and its working since it even animates the button presses on the app ! any ideas before i go nuts ? ๐Ÿ˜›
Solution:
I think it would be [k(Alt,p),k(uni('c')),k(Alt,r)] I am not at the pc so not 100% sure if its right....
Jump to solution
10 Replies
Terrorwolf
Terrorwolfโ€ข3w ago
Are you on x11 or wayland? Is there a reason you want to use external tools instead of the Input Simulation button in Opendeck directly?
PervyJokerr
PervyJokerrOPโ€ข3w ago
i am on wayland. And i had issues with using the Input Simulation and it didnt wanna register any of my keybindings i tried to put in there no matter what i choose to use of commands. and it didnt auto detect my key presses in the command window for key down and up also so i was having issues with that aswell. but I have now finally gotten it to work i think now with at least 1 key bind combination which is my Left-Alt key + C. and the command i used for that was using the Run Command function and using ydotool. so my commands are now for Key down "/usr/bin/ydotool key 56:1 46:1" and Key up "/usr/bin/ydotool key 46:0 56:0" so it registers the command i do now in the game i want it to work with.
Terrorwolf
Terrorwolfโ€ข3w ago
With ydotool we can't really help but with Input Simulation we can help if there are Problems.
PervyJokerr
PervyJokerrOPโ€ข3w ago
yeah. i have just been using chat AI to figure out things with it and also doing the good old fashioned googling. but what would be the right command for using the Input Simulation on key down and up for using Left-Alt button and pressing down C as a combo ? im just currious if i have had a major brain fart and my last braincell dying on me xD
Solution
Terrorwolf
Terrorwolfโ€ข3w ago
I think it would be [k(Alt,p),k(uni('c')),k(Alt,r)] I am not at the pc so not 100% sure if its right.
PervyJokerr
PervyJokerrOPโ€ข3w ago
that worked for me to my supprise. i guess the chat Ai's cant figure out everything. i need to have a better look at the commands so i can figure out what i can put where. but this used just the plain "Alt" and not "Alt_Left" or "Alt_L" and whatnot. i might have been going at it all wrong.
Terrorwolf
Terrorwolfโ€ข3w ago
I can later send you the Keylist. Also enigo is Case sensitive with the Inputs.
PervyJokerr
PervyJokerrOPโ€ข3w ago
sweeet ! Much appreciated ! the keycode list is this page ? https://github.com/enigo-rs/enigo/blob/v0.5.0/src/keycodes.rs with my understanding that was not for Linux.
GitHub
enigo/src/keycodes.rs at v0.5.0 ยท enigo-rs/enigo
Cross platform input simulation in Rust. Contribute to enigo-rs/enigo development by creating an account on GitHub.
Terrorwolf
Terrorwolfโ€ข3w ago
Yes. There are the keys for Linux, Windows and MacOS. Most of them can be used for all 3 systems.
PervyJokerr
PervyJokerrOPโ€ข3w ago
alright. il try and set this up now with your help on this case ! il keep this thread open a little longer to see if i get it right or not ๐Ÿ˜›

Did you find this page helpful?