Skip to content
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

Regarding mouse input in WSL2 #14

Open
aby03 opened this issue Oct 2, 2021 · 0 comments
Open

Regarding mouse input in WSL2 #14

aby03 opened this issue Oct 2, 2021 · 0 comments

Comments

@aby03
Copy link

aby03 commented Oct 2, 2021

I am trying to control mouse using code where code runs on WSL2 and mouse is controlled in windows 11. Now, for linux and windows OS individually, there are couple of libraries for both C++ and Python that does it neatly.
But I am unable to figure out how it will be done when code is running in WSL2. Trying it the linux way using python libraries like pyautogui gives error in Xauth. For windows way, the corresponding libraries are not found when I try to install in WSL since its behaving like linux.

I read and tested that GUI is now included in WSL2 (https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps) which made me think that there could be a way to control mouse similar to the way display is being done here. (Just a guess)

I am not sure where these WSL related development queries should go.

Any suggestions on this or relevant forums for this would be appreciated. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant