-
Notifications
You must be signed in to change notification settings - Fork 34
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
Added note about Linux-only support #17
base: master
Are you sure you want to change the base?
Conversation
Further to the notes in hofstadter-io#3 and hofstadter-io#16
It actually only supports XOrg on linux, not Wayland. It actually wouldn't be difficult to put some OS checks around the 2-3 features which break cross platform, just disable them on mac/win. @JonTheNiceGuy Any interest in doing the coding if I show you where to make the changes? |
Apologies for the delays, life rather got in the way. Yes, I'm happy to do that, let me know what you need changing! :) |
@verdverm @JonTheNiceGuy |
Apologies @lowpair, I never got the list of things which needed changing, but to be fair, I never chased it up, as things dragged me in lots of different directions, and I don't have the time, space or capacity to look into this right now :( |
@lowpair Most functionality is in this file: https://github.com/hofstadter-io/self-driving-desktop/blob/master/self_driving_desktop/parser.py a lot is determined by pyautogui, but Xorg is being used in places, so...
Xorg is used mainly for recording, finding the active window, and setting focus to a window. |
@JonTheNiceGuy @verdverm Now the revised part is introduced as follows(parser.py): import win32gui , need run : pip install pypiwin32import platform Modify the active and focus sections
I can run now, but I haven't done a comprehensive test; |
@lowpair do you have a link to that python lib for windows? I have a system I may be able to try it out on, and also against linux at the same time. Would like to take a look around that library to see if there are any other useful functions for doing the other stuff Xorg is doing. Will probably have to do something for Wayland as well... Assuming Mac might be out of reach b/c they lock down more and have increased that lockdown more recently |
@verdverm I looked up github, and I think it’s the project https://github.com/Googulator/pypiwin32 Hope is useful to you; |
Further to the notes in #3 and #16