Git Product home page Git Product logo

Comments (3)

paulie-g avatar paulie-g commented on September 26, 2024

Comment by daluu
Sunday Sep 10, 2017 at 02:52 GMT


How exactly are you running autopy in this setup? Some details would help.

On a related note, maybe this 3rd party project might help: https://github.com/daluu/autopydriverserver

from autopy2.

paulie-g avatar paulie-g commented on September 26, 2024

Comment by davesliu
Tuesday Sep 12, 2017 at 14:34 GMT


I can run the auotpy in a shell on desktop of Ubuntu OS. But if I tried to use autospy in an shell on another machine to control the mouse movement of Ubuntun OS remotely, it will fail

from autopy2.

paulie-g avatar paulie-g commented on September 26, 2024

Comment by daluu
Tuesday Sep 12, 2017 at 20:55 GMT


My guess then is that AutoPy needs active desktop access, which running locally (if not in barebone terminal CLI mode only, e.g. fire up a shell window in Ubuntu desktop to run AutoPy) does provide.

But obviously whenever you run remotely, that access isn't there (it's a headless, CLI/terminal only session). You could do x11 forwarding, but that would just send the remote machine's UI output/desktop to your local machine which might not be what you want. Doing it with x11 forwarding, then you'd run AutoPy locally against the forwarded UI.

One alternative you have would be to use VNC to "see" the remote Ubuntu system. And run the AutoPy script via the VNC session (i.e. local shell within VNC, not remote shell from your local machine).

There are some workarounds for that kind of thing for Windows UI automation for remote desktop protocol (RDP), but I don't know of equivalents for Linux/Ubuntu, best to go the VNC route, which works cross-platform.

Or use my AutoPyDriverServer alternative which would also work, by running a server on the remote machine and connecting to it and driving the mouse via the WebDriver API (wrapper) to AutoPy.

from autopy2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.