Input simulation help

I'm trying to make an input action to perform a hotkey combination for Meta+F12, but I can't seem to get it to work. I looked at the keycodes in enigo and still can't get it to trigger. What I have tried: [k(meta,f12)] [k(META,F12)] [k(m4,f12)] [k(super,f12)]
62 Replies
ninjadev64
ninjadev642mo ago
I'm not sure if commas work let me have a look, one sec try [k(meta,p),k(f12,c),k(meta,r)] the p means press, the c means click (press and release) and the r means release
SuperiorJT
SuperiorJTOP2mo ago
That didn't work either
ninjadev64
ninjadev642mo ago
try with Meta and F12 instead of lowercase
SuperiorJT
SuperiorJTOP2mo ago
It must have something to do with the keycode for the meta key because I can't even simulate it to open the launcher. Letter casing doesn't seem to make a difference. Starting to think this might not be an issue with the formatting. Just tried [t("hello world")] and it didn't do anything
ninjadev64
ninjadev642mo ago
oh maybe check ~/.var/app/me.amankhanna.opendeck/config/opendeck/plugins/com.amansprojects.starterpack.sdPlugin/plugin.log and also try on Xorg if you're on Wayland
SuperiorJT
SuperiorJTOP2mo ago
21:18:03 [ERROR] Failed to initialise plugin: IO error: failed to lookup address information: No address associated with hostname
ninjadev64
ninjadev642mo ago
wth do you have a firewall running?
SuperiorJT
SuperiorJTOP2mo ago
No. It might be an issue with my system config. I'll look into it
ninjadev64
ninjadev642mo ago
check the main opendeck logs as well you can press open log directory in the opendeck settings page
SuperiorJT
SuperiorJTOP2mo ago
Nothing useful in that log. Just logs for extracting zips
ninjadev64
ninjadev642mo ago
also check if you can ping localhost:57116 and if other plugins work
SuperiorJT
SuperiorJTOP2mo ago
ping: localhost:57116: Name or service not known I tried downloading other plugins and it crashed after restarting it, some of them work
ninjadev64
ninjadev642mo ago
how about ping 127.0.0.1:57116 or ping [::1]:57116 if either of those work, that would explain some of the plugins working and it would suggest your system host config has an issue
Terrorwolf
Terrorwolf2mo ago
FYI: At my System also neither of these Pings are working.
ninjadev64
ninjadev642mo ago
but the starter pack plugin does work for you right?
Terrorwolf
Terrorwolf2mo ago
I didn't get the Input simulation working yet but the Run command is working with the basic command "gnome-terminal".
ninjadev64
ninjadev642mo ago
yeah, this issue stops the whole plugin from working
Terrorwolf
Terrorwolf2mo ago
Just meant because the ping isn't working.
ninjadev64
ninjadev642mo ago
mm ok, I'll check the ping on my system too you compile from source right?
Terrorwolf
Terrorwolf2mo ago
I have the opendeck-git installed with tauri-cli 2 from arch.
ninjadev64
ninjadev642mo ago
hmm ok, that package has been broken since 2.1.1 (excluding) so you are a bit out of date
Terrorwolf
Terrorwolf2mo ago
No description
Terrorwolf
Terrorwolf2mo ago
this is my version at the moment I can update to the newest if you like
ninjadev64
ninjadev642mo ago
you can't the arch package is broken since 2.2.0* as I said
Terrorwolf
Terrorwolf2mo ago
do you know why it is broken?
ninjadev64
ninjadev642mo ago
GitHub
taurcli-2.x breaks app on Arch · Issue #28 · ninjadev64/OpenDeck
Hello! When we try to build opendeck on Arch using the AUR package we're catching failures because tauri.conf.json was built using version 1.6.x standards but the Arch version of tauri-cli is n...
Terrorwolf
Terrorwolf2mo ago
as far as I understand it it should work with deno-git, shouldn't it?
ninjadev64
ninjadev642mo ago
deno-git is also out of date/broken with Deno v2 but the person in that issue has adopted that package to hopefully fix it ok so the command was wrong, can you try nc -vz localhost 57116 instead
Terrorwolf
Terrorwolf2mo ago
do you know the command to verify the installed deno version?
ninjadev64
ninjadev642mo ago
(or if your system doesn't have nc/netcat try nmap -p 57116 localhost or telnet localhost 57116) can we move to the arch thread for this please
Terrorwolf
Terrorwolf2mo ago
now its working
No description
Terrorwolf
Terrorwolf2mo ago
no problem
ninjadev64
ninjadev642mo ago
cool, @SuperiorJT should try it to help fix their issue
SuperiorJT
SuperiorJTOP2mo ago
Starting Nmap 7.95 ( https://nmap.org ) at 2024-11-07 13:32 EST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000030s latency).
Other addresses for localhost (not scanned): ::1
rDNS record for 127.0.0.1: kubernetes.docker.internal

PORT STATE SERVICE
57116/tcp open unknown

Nmap done: 1 IP address (1 host up) scanned in 0.01 seconds
Starting Nmap 7.95 ( https://nmap.org ) at 2024-11-07 13:32 EST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000030s latency).
Other addresses for localhost (not scanned): ::1
rDNS record for 127.0.0.1: kubernetes.docker.internal

PORT STATE SERVICE
57116/tcp open unknown

Nmap done: 1 IP address (1 host up) scanned in 0.01 seconds
I tried doing a run command as well and that doesn't work
Terrorwolf
Terrorwolf2mo ago
wht exactly did you put into the run command?
SuperiorJT
SuperiorJTOP2mo ago
kitty
Terrorwolf
Terrorwolf2mo ago
in which of the both boxes?
SuperiorJT
SuperiorJTOP2mo ago
key down
Terrorwolf
Terrorwolf2mo ago
and kitty is working in the normal terminal?
SuperiorJT
SuperiorJTOP2mo ago
yes
Terrorwolf
Terrorwolf2mo ago
what is your Version of Opendeck? and which OS are you using?
ninjadev64
ninjadev642mo ago
it won't, the entire plugin isn't working
SuperiorJT
SuperiorJTOP2mo ago
OpenDeck v2.2.1 (e9ea53e) on x86_64-unknown-linux-gnu I'm on Arch 6.11.6-arch1-1
Terrorwolf
Terrorwolf2mo ago
are you using wayland or x11?
SuperiorJT
SuperiorJTOP2mo ago
wayland
Terrorwolf
Terrorwolf2mo ago
could you try to switch to x11 and see if it works?
ninjadev64
ninjadev642mo ago
No The plugin is not initialising Switching to X11 will not help
SuperiorJT
SuperiorJTOP2mo ago
Is there a way to get more verbose logs?
ninjadev64
ninjadev642mo ago
can you send your /etc/hosts?
SuperiorJT
SuperiorJTOP2mo ago
# Static table lookup for hostnames.
# See hosts(5) for details.
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
# Static table lookup for hostnames.
# See hosts(5) for details.
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
ninjadev64
ninjadev642mo ago
oh lmao try add 127.0.0.1 localhost as well as ::1 localhost also try this https://www.reddit.com/r/archlinux/comments/1ci8opc/comment/l27lksx/
SuperiorJT
SuperiorJTOP2mo ago
ayyyy that works
ninjadev64
ninjadev642mo ago
nice you were right, it was an issue with your system config
SuperiorJT
SuperiorJTOP2mo ago
I was able to get the run command working but the input simulation is still not working
ninjadev64
ninjadev642mo ago
check this file again maybe? and now you can try xorg
SuperiorJT
SuperiorJTOP2mo ago
yeah sounds like a wayland bug it works on x11
ninjadev64
ninjadev642mo ago
awesome I've just looked into it a bit deeper, and it seems the enigo library has experimental wayland support with both native wayland protocols and libei so maybe when they stabilise it, this will be finally resolved good and proper
SuperiorJT
SuperiorJTOP2mo ago
Are you able to just enable the wayland feature in the build? I could play around with getting it to work on a local build if it's too much trouble.
ninjadev64
ninjadev642mo ago
local build should be easy enough as it's just the plugin that needs to be built, not the whole app
SuperiorJT
SuperiorJTOP2mo ago
I'll try to get something tonight. If it ends up working, I'll submit a pr
ninjadev64
ninjadev642mo ago
you'd just need to replace the executable that you have already with the one you built I'd probably wait for it to be stable in the library, because from my experience with it, it appears to work on one system and completely breaks on others, even when it's "stable" when it is stable all i'd need to do is add "wayland" or "libei" to the features list, so it doesn't really require a whole PR
Want results from more Discord servers?
Add your server