Comments (3)
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.
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.
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)
- Compilation and OS X fixes
- Function takes no keyword arguments
- Fixes issue #15 ,incorrect "rect" HOT 2
- added instruction on rect usage
- Improve accuracy
- bitmap.cature_screen(rect) doesn't work properly HOT 1
- Segmentation fault when using get_color
- hex_to_rgb is not true
- no enter key HOT 1
- Is this an efficient alternative to RDP? HOT 1
- Feature Request
- Can't install from pip "Missing parenthesis in call to 'print'"
- Broken on Ubuntu Yakkety 16.10+, libpng12 dependency
- Update bitmap_find.c
- autopy.key.type_string() doesn't properly type SHIFT-modified characters (i.e. ":_+{}) HOT 1
- Still some runtime linking of Visual Studio dlls
- Selenium WebDriver API wrapper for autopy
- bitmap.capture_screen() method not working
- Curious why you renamed your fork HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autopy2.