Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Quality Assurance and Testing

    vncdotool 0.1.1

    Download button

    No screenshots available
    Downloads: 165  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Marc Sibson | More programs
    MIT/X Consortium Lic... / FREE
    May 19th, 2011, 19:40 GMT
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    vncdotool description

    Interact with a VNC server from the command-line

    vncdotool allows you to interact with VNC servers directly from the command-line.

    Currently under developement, so use at your own peril but what is the worst that could happen?

    Quick Start


    If you have a VNC server running you can quickly try out vncdotool by running:

    python vncdotool/command.py -h hostaddr -d displaynum click 2

    Which for most window managers will open a context menu at the top left corner of the screen. If you have PIL installed then you can do screen captures too:

    python vncdotool/command.py -h hostaddr -d displaynum capture screen.png

    Install:

    You will need to have Twisted installed, http://twistedmatrix.com. Optionally, you will also need the Python Imaging Library, http://www.pythonware.com/products/pil/. Once you have the dependencies installed you can install vncdotool from source with:

    python setup.py install

    Usage:

    Once installed you can use the vncdotool command to send keys, for alphanumeric you just specify the character. For other keys names are used:

    vncdotool key a
    vncdotool key 5
    vncdotool key .
    vncdotool key enter
    vncdotool key shift-a
    vncdotool key ctrl-C
    vncdotool key ctrl-alt-del


    To enter data you can use the type command, which only supports alphanumeric:

    vncdotool type hello

    You can also control the mouse pointer with move and click:

    vncdotool move 100 100
    vncdotool click 1


    If you have the Python Imaging Library (PIL) installed you can also make screen captures of the session:

    vncdotool capture screenshot.png

    Again if you have PIL, you can wait for the screen to match a known image. This is useful for waiting for the server to be in a known state:

    vncdotool expect somescreen.png 0

    Finally, you may specify multiple actions on a single command line:

    vncdotool type username key enter expect password_prompt.png
    vncdotool type password move 100 150 click 1 expect welcome_screen.png



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    VNC server | VNC interaction | VNC | server | interaction



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM