Unsolved Keyboard activity simulation in Linux
-
Hi everybody,
I must simulate keyboard activity but I don't want to use external tools.My environment:
- OS: Linux without keyboard
Goal: My background application must send to the OS a pressed key event, in the hope application that has focus (No necessarily a Qt application) receives my key events.
Alternative goal: My background application must send to QProcess a pressed key event, in the hope process (No necessarily a Qt application) receives my key events.
Many thanks
CP71 -
I don't know the answer, but can provide a hint: check out QtVirtualKeyboard module, maybe it does have some code for this (I'm not sure - it's entirely possible that QtVK only generates internal Qt events and does not touch OS for this).
-
@sierdzio
thank you for your answer.
At the end I’ll change my way, but I keep the topic open because I’m still concerned in the topic, If it's not a problem. -
There are several open source keyboard/mouse emulation projects. They are often used to inject input in testing harnesses. A web search should yield results.
-
@Kent-Dorfman
Thanks you,
I know, but my curiosity is if there is a way to do this using Qt framework, because all projects that I found don't use Qt.
Maybe someone has already done this by Qt.
Only for curiosity ;)