Carnets icon indicating copy to clipboard operation
Carnets copied to clipboard

PyAutoGui

Open Ohmagar opened this issue 2 years ago • 2 comments

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

Ohmagar avatar Jun 29 '22 15:06 Ohmagar

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.

holzschu avatar Jun 29 '22 15:06 holzschu

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.

Ohmagar avatar Jun 30 '22 01:06 Ohmagar