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

add wsl support #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

add wsl support #8

wants to merge 2 commits into from

Conversation

danlkv
Copy link

@danlkv danlkv commented Dec 5, 2024

it's not super easy to get this to work, maybe there's an easier way. PyQT6 works with WSL, but is not installing in Windows (wheels are only available for ARM). pyautogui works in Windows but does not work in WSL.

What I did is added a simple REST python server which runs the pyautogui in windows, and the app is started from WSL. For now, I put all relevant files plus some tests in the wsl/ subfolder.
In addition, I added some proper handling of "ctrl+key" shortcuts in the server.

@danlkv
Copy link
Author

danlkv commented Dec 5, 2024

I don't know if it's a wsl/PyQT thing, but the agent window is not moving when I drag it.

@suitedaces
Copy link
Owner

Thanks for the contribution! I definitely didn't test this on windows (only my ARM mac), so this will be really helpful

As for the window drag issue - I don't have any issues moving it, so that's weird, maybe I'll try to get my windows machine out to test this at some point

Just out of curiosity, what kind of tasks are you having it do?

@danlkv
Copy link
Author

danlkv commented Dec 5, 2024

Thanks for starting this project:) Would be nice to use ChatGPT as well. I tried to get it to do basic things, like browse Wikipedia or open a website. It's not very robust. For example, if you have multiple Edge windows open, clicking on an icon will open a picker for windows. And it's not realizing that the browser is not open yet. It was able to figure out with Firefox and one window, though. ChatGPT seems a bit smarter so maybe using that will be more robust.

Note on this MR though: I changed the computer.py to only use the wsl. There's still some work to do to determine which pyautogui to use.

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

Successfully merging this pull request may close these issues.

2 participants