hatzisn Expert Licensed User Longtime User Aug 17, 2025 #1 Hi all, I am using java.awt.Robot to send keys through a B4J app. In windows it works correctly sending Ctrl+V with no problem. Then in Linux I thought it was not working but then I noticed that Ctrl+V does work in the application but not outside of it. I am using Debian 12 in virtualbox. Is there a way to overcome this obstacle?
Hi all, I am using java.awt.Robot to send keys through a B4J app. In windows it works correctly sending Ctrl+V with no problem. Then in Linux I thought it was not working but then I noticed that Ctrl+V does work in the application but not outside of it. I am using Debian 12 in virtualbox. Is there a way to overcome this obstacle?
stevel05 Expert Licensed User Longtime User Aug 17, 2025 #2 Have you tried rbt.RobotPaste(Text,delay)? Upvote 0
hatzisn Expert Licensed User Longtime User Aug 17, 2025 #3 It is a Wayland issue. On X11 it works correctly. I changed the compatibility to "gnome classic at xorg" (it has to be installed also) and I ran the test command: Bash: echo $XDG_SESSION_TYPE I tried different versions of gnome and when it displayed X11 instead of "wayland" everything worked as expected. It is also explained here: https://wiki.openjdk.org/display/wakefield/Known+problems+and+solutions Upvote 0
It is a Wayland issue. On X11 it works correctly. I changed the compatibility to "gnome classic at xorg" (it has to be installed also) and I ran the test command: Bash: echo $XDG_SESSION_TYPE I tried different versions of gnome and when it displayed X11 instead of "wayland" everything worked as expected. It is also explained here: https://wiki.openjdk.org/display/wakefield/Known+problems+and+solutions
stevel05 Expert Licensed User Longtime User Aug 17, 2025 #4 It's worth trying if you haven't already don't know the details, but it definitely works differently than Crtl+v. But it's not new enough to have been tailored for Wayland, so fingers crossed. Upvote 0
It's worth trying if you haven't already don't know the details, but it definitely works differently than Crtl+v. But it's not new enough to have been tailored for Wayland, so fingers crossed.
hatzisn Expert Licensed User Longtime User Aug 18, 2025 #5 stevel05 said: It's worth trying if you haven't already don't know the details, but it definitely works differently than Crtl+v. But it's not new enough to have been tailored for Wayland, so fingers crossed. Click to expand... Hi... Thanks for answering. If I try your solution then I get "symbol not found". Maybe you are using another class. In oracle site it displays this information: Robot (Java SE 11 & JDK 11 ) Upvote 0
stevel05 said: It's worth trying if you haven't already don't know the details, but it definitely works differently than Crtl+v. But it's not new enough to have been tailored for Wayland, so fingers crossed. Click to expand... Hi... Thanks for answering. If I try your solution then I get "symbol not found". Maybe you are using another class. In oracle site it displays this information: Robot (Java SE 11 & JDK 11 )
stevel05 Expert Licensed User Longtime User Aug 18, 2025 #6 Ah, OK I was talking about this library https://www.b4x.com/android/forum/t...-keyboard-and-mouse-events-etc.55832/#content Upvote 0
Ah, OK I was talking about this library https://www.b4x.com/android/forum/t...-keyboard-and-mouse-events-etc.55832/#content