Forum > Linux
SendKeys Alernative for Linux
Thaddy:
That needs root privileges, so I left that out. If you are interested I can post for that too..
Using /dev/uinput and fpioctrl. Not really recommended and I doubt if it is very useful to OP.
(Or anybody sane for that matter, usually discussions unfold that are not relevant to the question: a replacement for sendkeys)
MarkMLl:
--- Quote from: Thaddy on October 29, 2025, 08:43:08 am ---That needs root privileges, so I left that out.
--- End quote ---
No, user needs to be a member of the input group, or the program he's running needs appropriate capabilities.
The sticking point is routing to a specific PID, window etc.
MarkMLl
pixelink:
Thanks for the info!
LemonParty:
--- Quote from: MarkMLl on October 29, 2025, 08:39:15 am ---At a somewhat lower level there's the events API https://www.kernel.org/doc/html/v4.18/input/event-codes.html and also see the evtest program: note that this is specifically input device codes, rather than "events" as in interrupts etc.
What I don't know is whether it's possible to send events to a specific process (identified by PIC) or window (identified at the widget set level).
MarkMLl
--- End quote ---
I am intersting if someone successfully used this API.
MarkMLl:
--- Quote from: LemonParty on November 22, 2025, 01:40:50 pm ---I am intersting if someone successfully used this API.
--- End quote ---
Not with my own code. I've got a slightly-modified version of mxk originally from http://welz.org.za/projects/mxk (not sure whether that site is still live **), but basically there should be plenty of examples around although they'll probably be written in C.
However as I've said: the problem is that it's global, and oblivious to what program's running etc. To decide whether that API is going to be any use at all for you I suggest playing with evtest, noting that you'll need to be a member of the input group.
MarkMLl
** https://web.archive.org/web/20150804022200/http://welz.org.za/projects/mxk
Navigation
[0] Message Index
[#] Next page
[*] Previous page