472,146 Members | 1,682 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

Using mouse

I would like to control mouse events (i.e. I would like to "click" and
move mouse around by code).
How do I do this in python?

regards
Jan 1 '08 #1
3 2014
On 2007-12-31, Lucas Prado Melo <lu*********@gmail.comwrote:
I would like to control mouse events (i.e. I would like to
"click" and move mouse around by code). How do I do this in
python?
http://python-xlib.sourceforge.net/d...n-xlib_14.html

--
Grant Edwards grante Yow! Pardon me, but do you
at know what it means to be
visi.com TRULY ONE with your BOOTH!
Jan 1 '08 #2
En Tue, 01 Jan 2008 12:54:54 -0200, Grant Edwards <gr****@visi.com>
escribi�:
On 2007-12-31, Lucas Prado Melo <lu*********@gmail.comwrote:
>I would like to control mouse events (i.e. I would like to
"click" and move mouse around by code). How do I do this in
python?

http://python-xlib.sourceforge.net/d...n-xlib_14.html
On Windows, use the mouse_event function
http://msdn2.microsoft.com/en-us/library/ms646260.aspx
Available on pywin32 https://sourceforge.net/projects/pywin32/ or using
ctypes directly.

--
Gabriel Genellina

Jan 1 '08 #3
Lucas Prado Melo wrote:
I would like to control mouse events (i.e. I would like to "click" and
move mouse around by code).
How do I do this in python?
A python doesn't have a mouse for long; it eats them up.

It is your display and user I/O system that deals with mice,
and so, inevitably, the answer to your question (and, indeed
whether such a thing is even possible) depends on the OS and
display packages you are using.

--Scott David Daniels
Sc***********@Acm.Org
Jan 1 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by mitsura | last post: by
6 posts views Thread by Brian Basquille | last post: by
31 posts views Thread by arun | last post: by
8 posts views Thread by Scott M. | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.