holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 34 forks source link

PyAutoGui #256

Open Ohmagar opened 2 years ago

Ohmagar commented 2 years ago

Hi,

is it on the roadmap to preinstall PyAutoGui? It requires C components (even though I don’t know if that would be enough.. I am more interested in controlling the mouse via Python.).

Is there another way in which I could achieve that?

Best regards,

Ohm

holzschu commented 2 years ago

I had a quick look at the code. The code contains many things that are specific to OSX, and won't be easy to adapt to iOS. It strongly depends on pyobjc to call Objective-C frameworks from inside Python, and pyobjc is not easy to port (I tried).

You can have a look at rubicon: https://rubicon-objc.readthedocs.io/en/latest/ which lets you access iOS frameworks (like pyobjc) but using only Python calls. From there you could probably access some system information. But I'm not sure that it is possible to control the mouse from inside iOS.

Ohmagar commented 2 years ago

Thank you! I hoped for an easy way of doing it but I guess I will have to try to read up on it.. The only way I found until now was through swift apparently. Best regards.