How to Write Text SendKey to another application like keybord key out
-
There is no Qt functionality which you can use here. You have to rely on stuff provided by your OS.
-
There is no Qt functionality which you can use here. You have to rely on stuff provided by your OS.
Hi @Christian-Ehrlicher
I develop on linux OS. It posible to do ?
Do you have any idea ? -
@Sontichai said in How to Write Text SendKey to another application like keybord key out:
It posible to do ?
Yes, why should it not
Do you have any idea ?
No, since it also depends if you use X11 or Wayland or something else.
-
Hi all,
I found solution by use xdotool lib on linux raspberry pi. It worked for me.
See link below.
[https://amin-ahmadi.com/2016/06/21/how-to-get-the-topmost-window-title-using-qtc-in-linux/](link url)
This code for enter text
process.setArguments(QStringList() << "type" << "Your text" ) ;
and this code for enter keyboard
rocess.setArguments(QStringList() << "key" << "KP_Enter" ) ;I hope this can helps you.