-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux robot.Type() not working #52
Comments
Apparently, On Linux .Type() only works in a web browser like Firefox and can't be used in a Terminal Window or other GUI application. Also .KeyDown() .KeyPress(), .KeyUp() and .CombineKeys() does not work at all on Linux, only .Type() works meaning it is impossible to send ALT+TAB to flip between applications. |
Also what is your desktop system info? Can you paste the ouput of |
The code is pretty much a copy paste of the example on the github page ( https://github.com/lucassklp/Desktop.Robot ) under the section "Example of use". Basically i'm just using .Type() to get some output into the currently selected Window. For this project I'm using .NET 6.0 and I'm using Ubuntu 22.04 (LTS) under VMWare Workstation, not sure if Gnome has something to do with it. Or VMWare. Here is a video showing what happens: https://www.youtube.com/watch?v=lxFrrgXxGAY |
So, found your project, looked interesting. I did the standard example with
robot.Type("Hello world!")
in a .NET 6 project. On Windows it works fine, but on Linux nothing happens. It doesn't write to either the current console window or an instance of GEdit that i started to test it out.I did have some problems with x11.os not being included, but i copied it manually to the Linux folder + also did a Selfcontained distribution - but neither worked. Running with .NET 6.0.25 installed under Ubuntu.
The text was updated successfully, but these errors were encountered: