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
vncdotool should be usable as a library #18
Comments
@garretraziel let me know if the API in http://vncdotool.readthedocs.org/en/latest/library.html meets your needs. If not please re-open. |
API looks pretty good (thank you!), but I have several problems with it. First of all, I am unable to create two clients in one program (call connect() twice). I think that this is still problem with Twisted reactor, but since I'm using it in my GUI testing tool, I want to create several virtual machines with different VNC ports and connect to each of them (see how I am using vncdotool client here http://git.jansedlak.cz/?p=infinity-f20.git;a=blob;f=xpresserng/vncutils.py;h=fc9dc525c7f6efc82789e414d92d8a57e45fb8ba;hb=refs/heads/libvncdotool). Another problem is that virtual machine changes its resolution during boot, from 640_480 to 1024_768. When I have used vncdotool with os.system(), it worked (output images had 640_480 and then 1024_768) but when I use API and client.captureScreen(), resulting image is cropped to only 640*480 all the time, see attached screenshot. |
I wanted to use vncdotool in my Python program for automation, but it was very difficult because of Twisted library and I ended up calling subprocess.call(), which isn't nice.
One should be able to import vncdotool and call its functions to communicate via VNC from Python programs.
The text was updated successfully, but these errors were encountered: