467,075 Members | 1,049 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

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
  • viewed: 1875
Share:
3 Replies
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@skynet.be | last post: by
2 posts views Thread by meganrobertson22@hotmail.com | 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 this site, you agree to our Privacy Policy and Terms of Use.