You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 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.
The text was updated successfully, but these errors were encountered: