how to control the mouse pointer with python?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • oglycans@yahoo.com

    #1

    how to control the mouse pointer with python?

    Hi.
    Anybody know a way to control the mouse pointer
    (move it around and click on things) using python?
    Thanks.

  • Leif K-Brooks

    #2
    Re: how to control the mouse pointer with python?

    oglycans@yahoo. com wrote:[color=blue]
    > Anybody know a way to control the mouse pointer
    > (move it around and click on things) using python?[/color]

    It depends on your operating system. For Windows, you'll want to use a
    Python module to access the Win32 API. The relevant API function is
    documented at <URL:http://tinyurl.com/jrxm>.

    Comment

    • oglycans@yahoo.com

      #3
      Re: how to control the mouse pointer with python?

      Sorry, I should have mentioned it's linux (debian).
      Thanks.
      [color=blue]
      > It depends on your operating system.[/color]

      Comment

      • Grant Edwards

        #4
        Re: how to control the mouse pointer with python?

        On 2005-01-13, oglycans@yahoo. com <oglycans@yahoo .com> wrote:
        [color=blue]
        > Sorry, I should have mentioned it's linux (debian).
        > Thanks.[/color]

        What environment?

        Console?
        X11?
        MGR?
        ???

        --
        Grant Edwards grante Yow! My ELBOW is a remote
        at FRENCH OUTPOST!!
        visi.com

        Comment

        • oglycans@yahoo.com

          #5
          Re: how to control the mouse pointer with python?

          >What environment?

          It's X.

          Comment

          • John Lenton

            #6
            Re: how to control the mouse pointer with python?

            On Thu, Jan 13, 2005 at 01:07:18PM -0800, oglycans@yahoo. com wrote:[color=blue]
            > Hi.
            > Anybody know a way to control the mouse pointer
            > (move it around and click on things) using python?[/color]

            in X11, you could use Xlib to do so. In debian unstable, that's
            "apt-get install python-xlib{,-doc}", and start reading.

            --
            John Lenton (john@grulic.or g.ar) -- Random fortune:
            Obviously I was either onto something, or on something.
            -- Larry Wall on the creation of Perl

            -----BEGIN PGP SIGNATURE-----
            Version: GnuPG v1.2.5 (GNU/Linux)

            iD8DBQFB5w79gPq u395ykGsRAkQ7AJ 9HKiTw9IcrttTmz 7VwEMyk1VOOrwCg o0MQ
            KSbjWGqqgN7ck1a xYhUEHDk=
            =LUup
            -----END PGP SIGNATURE-----

            Comment

            Working...